Full Width [alt+shift+f] Shortcuts [alt+shift+k]
Sign Up [alt+shift+s] Log In [alt+shift+l]
SplitDuck.com Use A/B testing to increase revenue
1

Learnings from a week of building with local LLMs

from Alex Strick van Linschoten [alt+shift+b] in AI

I took the past week off to work on a little side project. More on that at some point, but at its heart it’s an extension of what I worked on with my translation package tinbox. (The new project uses translated sources to bootstrap a knowledge database.) Building in an environment which has less pressure / deadlines gives you space to experiment, so I both tried out a bunch of new tools and also experimented with different ways of using my tried-and-tested development tools/processes. Along the way, there were a bunch of small insights which occurred to me so I thought I’d write them down. As usual with this blog, I’m mainly writing for my future self but I think there might be parts that are useful for others! Apologies for the somewhat rushed nature of these observations; better I get the blog finished and published than not at all! 🤖 Local Models During this project, I experimented with several local models, which continue to impress me with their evolving capabilities. The recent launch of gemma3 was particularly timely - I found myself regularly using the 27B version, which performed admirably across various tasks. There are three or four models I keep returning to. mistral-small stands out as an exceptional model that’s been relatively recently updated and seems a bit underrated / underappreciated. The original mistral model continues to hold up remarkably well, particularly for structured extraction tasks and general writing needs like summarization. One important realization when working with real-world use cases: benchmarks can be deceptive. While helpful as general indicators, each model has its own strengths and quirks. Many newer models are heavily optimized for structured data extraction, but their performance ultimately depends on whether their training documents align with your specific use case. It’s crucial to test models against your actual requirements rather than relying solely on published benchmarks. For robust results with local models, I’ve...
15th Mar 2025

Stay updated

Get a weekly newsletter with the top 5 articles worth reading every week.

More from Alex Strick van Linschoten

Trying to instrument an agentic app with Arize Phoenix and litellm

It’s important to instrument your AI applications! I hope this can more or less be taken as given just as you’d expect a non-AI-infused app to capture logs. When you’re evaluating your LLM-powered system, you need to have capture the inputs and outputs both at an end-to-end level in terms of the way the user experiences things as well as with more fine-grained granularity for all the internal workings. My goal with this blog is to first demonstrate how Phoenix and litellm can work together, and then to make sure that we are able to group all spans together under a single trace. I’ll write the blog as I work so at this point I’m not sure exactly how this will turn out. Basic logging with litellm + phoenix As a reminder, here’s how we make an LLM call with litellm: import litellm completion_response = litellm.completion( model="openrouter/google/gemma-3n-e4b-it:free", messages=[ { "content": "What's the capital of China? Just give me the name.", "role": "user", } ], ) print(completion_response.choices[0].message.content) # prints 'Beijing' The Phoenix docs explain how to set up basic logging for litellm: install the following pip packages: arize-phoenix-otel openinference-instrumentation-litellm (litellm, obviously) set up the necessary environment variables with API key etc to ensure that traces get sent to the right account and endpoint Let’s assume we’re using the hosted Phoenix Cloud version for now. Then we can rerun our example, with some slight tweaks: import litellm from phoenix.otel import register # configure the Phoenix tracer tracer_provider = register( project_name="hinbox", # Default is 'default' auto_instrument=True, # Auto-instrument your app based on installed OI dependencies ) completion_response = litellm.completion( model="openrouter/google/gemma-3n-e4b-it:free", messages=[ { "content": "What's the capital of China? Just give me the name.", "role": "user", } ], ) print(completion_response.choices[0].message.content) So we first register the Phoenix tracer, specify the project (already set up in Phoenix Cloud) and then run our litellm completion as previously. In the terminal we see he following logs: 🔭 OpenTelemetry Tracing Details 🔭 | Phoenix Project: hinbox | Span Processor: SimpleSpanProcessor | Collector Endpoint: https://app.phoenix.arize.com/v1/traces | Transport: HTTP + protobuf | Transport Headers: {'api_key': '****', 'authorization': '****'} | | Using a default SpanProcessor. `add_span_processor` will overwrite this default. | | ⚠️ WARNING: It is strongly advised to use a BatchSpanProcessor in production environments. | | `register` has set this TracerProvider as the global OpenTelemetry default. | To disable this behavior, call `register` with `set_global_tracer_provider=False`. Beijing So immediately there are a lot of things to consider. It seems that we’ll want to use the BatchSpanProcessor that it suggests, and also it seems like I might not want to set this as the global tracing provider, too. In Phoenix Cloud, I see this: Basic Phoenix tracing interface As you can see, we’ve captured the input and output messages for the completion, it’s tracked the latency of the call (1.16s, which seems pretty slow actually!). There is also some sort of an annotation interface though I’ll explore that down the line maybe. I immediately notice that I’m missing things like the system attributes for where the call was made, also metadata like the temperature and other settings. I’d also like to see things like token counts (which you can get in Phoenix but they’re sort of buried) as well as the estimated cost of the call(s) and so on. We can see about adding some of that down the line. BatchSpanProcessor for production usage Let’s next move on to adding BatchSpanProcessor as the message suggested, which is as simple as adding batch=True to the tracer provider registration code. What this does is make sure that spans are processed in batches before they’re exported to Arize. This takes away some of the network costs that you incur when sending the spans one by one. I’ve also made sure to turn off the registration of this tracing provider as the global one: import litellm from phoenix.otel import register # configure the Phoenix tracer tracer_provider = register( project_name="hinbox", # Default is 'default' auto_instrument=True, # Auto-instrument your app based on installed OI dependencies set_global_tracer_provider=False, batch=True, ) completion_response = litellm.completion( model="openrouter/google/gemma-3n-e4b-it:free", messages=[ { "content": "What's the capital of China? Just give me the name.", "role": "user", } ], ) print(completion_response.choices[0].message.content) And I get this in the terminal: 🔭 OpenTelemetry Tracing Details 🔭 | Phoenix Project: hinbox | Span Processor: BatchSpanProcessor | Collector Endpoint: https://app.phoenix.arize.com/v1/traces | Transport: HTTP + protobuf | Transport Headers: {'api_key': '****', 'authorization': '****'} | | Using a default SpanProcessor. `add_span_processor` will overwrite this default. Beijing It’s actually somehow a bit annoying to still see a message about the fact that I’m using a default SpanProcessor. It’s unclear to me why I need to care that this is a default one. The message is taking up real estate in the logs and it seems important (otherwise why would they have included it?) but it’s also unclear to me what the alternative is and why I’d want to overwrite the default. I think for now I’ll leave it. Using the litellm callbacks as an alternative If we stray away from the official supported way to handle tracing with Phoenix, there’s also the community-supported in-built litellm option: import litellm litellm.callbacks = ["arize_phoenix"] completion_response = litellm.completion( model="openrouter/google/gemma-3n-e4b-it:free", messages=[ { "content": "What's the capital of China? Just give me the name.", "role": "user", } ], metadata={"PROJECT_NAME": "hinbox"}, ) print(completion_response.choices[0].message.content) This achieves a similar result, though I was unable to get the trace to land anywhere other than the default project. Arize’s docs mention a PHOENIX_PROJECT_NAME environment variable but it seems this isn’t respected or used by the litellm implementation. Indeed when I look at the implementation, I don’t see this being used anywhere, so it seems that the community-driven implementation isn’t really the way forward. I just wanted to mention it, however, since some of the ‘callback’ integrations for tracing in litellm are really nicely implemented (like the one for Langfuse, e.g.) so I wanted to try it out at least. One trace, multiple spans For anything beyond a simple LLM call, which means most real-world LLM applications, we’ll want to be capturing multiple spans as part of a single trace. LLM Tracing Tools’ Naming Conventions (June 2025) Side-note: I dug into how some of the major LLM tracing providers name their primitives. I was reassured that we seem to have coalesced around ‘trace -> span’ and that the OpenTelemetry way seems to have been adopted by most. Tracing nomenclature (June 2025) Grouping spans under a single trace I updated the code such that we now have a function that makes two separate LLM calls. I’d want them to both be registered as spans under the same trace: import litellm from phoenix.otel import register tracer_provider = register( project_name="hinbox", # Default is 'default' auto_instrument=True, # Auto-instrument your app based on installed OI dependencies set_global_tracer_provider=False, batch=True, ) def query_llm(prompt: str): completion_response = litellm.completion( model="openrouter/google/gemma-3n-e4b-it:free", messages=[ { "content": prompt, "role": "user", } ], ) return completion_response.choices[0].message.content def my_llm_application(): query1 = query_llm("What's the capital of China? Just give me the name.") query2 = query_llm("What's the capital of Japan? Just give me the name.") return (query1, query2) if __name__ == "__main__": print(my_llm_application()) But these just get registered as two separate traces/calls. The key bit of the documentation is the ‘Using Phoenix Decorator’ section, it seems. If I add a decorator on top of my function and get the specific tracer, it seems I am able to start to group things together: import litellm from phoenix.otel import register tracer_provider = register( project_name="hinbox", # Default is 'default' auto_instrument=True, # Auto-instrument your app based on installed OI dependencies set_global_tracer_provider=False, batch=True, ) tracer = tracer_provider.get_tracer(__name__) def query_llm(prompt: str): completion_response = litellm.completion( model="openrouter/google/gemma-3n-e4b-it:free", messages=[ { "content": prompt, "role": "user", } ], ) return completion_response.choices[0].message.content @tracer.llm def my_llm_application(): query1 = query_llm("What's the capital of China? Just give me the name.") query2 = query_llm("What's the capital of Japan? Just give me the name.") return (query1, query2) if __name__ == "__main__": print(my_llm_application()) This works and I see this in the Phoenix Cloud dashboard: Grouped traces under a single span See how it’s taken the function name as the name of the span. And it’s grouped those two LLM calls that happen within the function as we wanted. We can also update the decorator to denote different kinds of spans that we want to capture: The kinds of spans you can choose from I’m immediately a bit confused by the interface again, because when you click on the ‘Traces’ tab in Phoenix Cloud you actually still just see ‘spans’: Spans in the Traces tab In the documentation it isn’t clear to me how to create a trace that includes an llm span and an embedding span, for example. What’s even more frustrating is that the tracer decorator object doesn’t implement all the span types, just agent, chain and llm it seems. I tried something like this but it just ended up producing 3 separate traces in Phoenix Cloud. I looked at the documentation for using base OTEL instead of the Phoenix decorators, but there was also nothing in there on how to denote the trace instead of just the span. I was wondering if their ‘Sessions’ primitive was the way forward here, but they’re pretty clear in stating that a Session is a “sequence of traces”. So I’m at a bit of a dead end with Phoenix for now. I might return to Braintrust or Langfuse since these seem to have better support for what I’m trying to do (i.e. group spans together underneath a trace). I’m really reluctant to try to instrument hinbox with Phoenix when I’m unable even to get this basic grouping working properly with some dummy code. Update: solution from the Arize team I posted this blog on the Arize slack and they got back to me with a solution: import litellm from phoenix.otel import register tracer_provider = register( project_name="hinbox", # Default is 'default' auto_instrument=True, # Auto-instrument your app based on installed OI dependencies set_global_tracer_provider=False, ) tracer = tracer_provider.get_tracer(__name__) @tracer.llm def query_llm(prompt: str): completion_response = litellm.completion( model="openrouter/google/gemma-3n-e4b-it:free", messages=[ { "content": prompt, "role": "user", } ], ) return completion_response.choices[0].message.content @tracer.agent def query_agent(prompt: str): return "I am an agent." @tracer.chain def my_llm_application(): query1 = query_llm("What's the capital of China? Just give me the name.") query2 = query_llm("What's the capital of Japan? Just give me the name.") agent1 = query_agent("Who are you?") return (query1, query2, agent1) if __name__ == "__main__": print(my_llm_application()) And you can see how this looks in the Phoenix Cloud dashboard: Grouped spans Judging from the code it seems like the way the span is constructed simply depends on how you assemble the hierarchy of spans. For instance, if I wanted to consider the top-level entity for this ‘trace’ (i.e. a grouping of spans) then I could use this code: import litellm from phoenix.otel import register tracer_provider = register( project_name="hinbox", # Default is 'default' auto_instrument=True, # Auto-instrument your app based on installed OI dependencies set_global_tracer_provider=False, # batch=True, ) tracer = tracer_provider.get_tracer(__name__) @tracer.llm def query_llm(prompt: str): completion_response = litellm.completion( model="openrouter/google/gemma-3n-e4b-it:free", messages=[ { "content": prompt, "role": "user", } ], ) return completion_response.choices[0].message.content @tracer.agent def query_agent(prompt: str): return "I am an agent." @tracer.tool(name="query_embedding", description="Query embedding") def query_embedding(prompt: str): return [0.1, 0.2, 0.3] @tracer.agent def my_llm_application(): query1 = query_llm("What's the capital of China? Just give me the name.") query2 = query_llm("What's the capital of Japan? Just give me the name.") agent1 = query_agent("Who are you?") embedding1 = query_embedding("What's the capital of China? Just give me the name.") return (query1, query2, agent1, embedding1) if __name__ == "__main__": print(my_llm_application()) And now instead of this trace being of kind ‘chain’, it’s now of kind ‘agent’, which some internal spans also being of kind ‘agent’. In a conversation in the Arize Slack I got the following clarification: “Traces as the concept under”signals” is basically a unique identifier of spans (think “span” of time). See https://opentelemetry.io/docs/concepts/signals/traces/ In most cases if you filter spans by “roots” (e.g. spans that don’t have parents) and or look at the collective set of “traces” they will roughly look the same. Most of the time this is the view you want when looking at telemetry. Spans are too noisy to be looking at in isolation. While the two tabs feel largely overlapping, it’s a bit intentional as there’s actually no real object called a trace - it’s just a series of spans. You will see these abstractions in most observability platform.” The line that: “there’s actually no real object called a trace - it’s just a series of spans” Was extremely clarifying, actually. It explains the fuzziness between the spans and traces tab in the Phoenix dashboard. I also got some clarification around the missing @tracer.embbeding and @tracer.reranker decorators: “We emit spans for embedding text to vectors (like”adda”), guardrailing via thinks like guardrals or content moderation, and reranking things via things like cohere. However it’s sorta rare for people to manually write these. We will have decorators for them but right now they are typically emitted from autoinstrumentors like langgraph where there are common patterns for these things. We will have decorators for them very soon - but things like reranking are much more complex than things like tool calling so we are codifying these primitives now.” So there you have it! Some clarity. I’ll have to play around to see whether I go with the Langfuse route or the Phoenix route and which feels most ergonomic in the hinbox codebase. Appreciate the quick feedback from the Phoenix team, though!

3rd Jun 2025 • 1 votes
How to think about evals

Today was the first session of Hamel + Shreya’s course, “AI Evals for Engineers and PMs”. The first session was all about mental models for thinking about the topic as a whole, mixed in with some teasers of practical examples and advice. I’ll try to keep up with blogging about what I learn as we go. Most of the actual content will go up online at some point in the future, I’m assuming, so not much point writing up super detailed notes. (There is also a book coming, which I assume will be great, and about which you can learn more here.) So in general I’ll try to be doing the following as I blog along: highlight things I found interesting or inspiring based on the formal ‘lectures’ anything that comes up while doing the practical ‘homework’ (there are some optional exercises assigned to ground everything) contextualise or situate things that come up in my own experience having worked on a few LLM-driven projects Today, fresh out of the first class, I wanted to write about the mental model of the ‘three gulfs’ that they propose, the improvement loop that they suggest is how to measurably improve your applications, and also prompting through the lens of evals. Finally I’ll round off with a bit about what I’ll be exploring this week. The Three Gulfs: Specification, Generalization and Comprehension So there’s this image that they shared in the book chapter preview discussion that came up again during the lesson today: The three gulfs of LLM application development (They’ve shared it already in the YouTube discussion + I see it on Twitter being shared so I think I’m not sharing something I ought not to!) The course is very practically focused, especially so for application developers, so this diagram is in that context. The diagram offers up a way of thinking about LLM application development that pinpoints the places where you might do your work, and it’s also a way of thinking through things systematically, too. I was especially interested in the differentiation between the gulf of specification and the gulf of generalisation, since these can often feel similar, but actually the way to get out of them is actually slightly different. I’ll go into a bit more detail below, but basically with the gulf of specification you might want to be working on your prompts + how specific you are, whereas with the generalisation gulf you might need things like splitting up your tasks or making sure your system is outputting things in a structured way, etc etc. Note also that the world of tooling also doesn’t help you in a specific or targeted way to focus on one aspect of this diagram. Too often the tools try to cover the whole picture and probably also muddy the water by eliding the differences between the different tasks and challenges of each island or the gulf in between. All this is pretty abstract, so let’s go through them one by one. The Gulf of Comprehension in Practice This was seen as sort of the starting point for thinking through LLM Application improvement. At this point your big problem is that you’re trying to understand the data that comes your way from your users. You’re trying to understand the inputs to your application (what your users are typing, assuming that text is the medium of communication / input) and you’re trying to understand what the application or LLM is outputting. The challenge comes because you can’t read every single log or morsel of data. You have to filter things down somehow! If this were something more like traditional ML you’d have statistics to help boil down your data, but mostly we’re talking about unstructured text data so it’s much more unwieldy. This challenge means that people often get stuck at this point. This is where POC applications live, breathe and eventually die. You have enough sense that things are ‘kinda’ working, but you don’t really know what the failure modes are, so you don’t know how to improve it. You’ve tried out one or two things in a halfway systematic way, but really you have no idea what’s working well and what’s not. On Tools vs Process Hamel made the good point that it’s probably not so useful to think about tools too much when thinking at this stage. Generally speaking what’s going on is most often actually a process problem and trying to go straight to ‘what tool do I need’ is probably avoiding the real issue. The Gulf of Specification in Practice This is the place where you are trying to translate intent into precise instructions that the LLM will follow. You’re trying to be explicit and specific in the hope that the LLM will do what you want it to do, and not do the things that you don’t want it to do. The obvious manifestation of this is people writing bad prompts. It might seem that it’s also present when you try to have an LLM solve one problem when it’s either unsuited for that task or the task needs to be broken up and so on, but that’s the sister gulf of generalisation. Here, we’re focused on how to improve the specificity of your prompts. When you split things up and highlight the fact that prompts are something that you’ll need to work on and to improve, it becomes clear that it’s something you wouldn’t want to outsource or to skimp time on. Really the prompt writing is the thing that you (at certain moments, and where it’s identified as the thing needing focus / improvement) want to be working on in partnership with domain experts. For small applications, you might be the same person as the domain expert! For bigger projects, you might be working with domain experts. Just be aware that often the domain expert might not necessarily be detached enough to be able to figure out what needs the focus, or where the weaknesses of a prompt are. That’s what the iterative process / error analysis and everything else that’ll be taught in the course is for (see below and see future posts). Another point Hamel made was about why prompts are actually so important: “you have to express your project taste somewhere”. Given that your application might be fully / mostly driven by LLMs, the prompt is actually a really crucial place to express this taste and as such might be thought of as your ‘moat’. I know just from having experienced a variety of LLM-driven applications, it’s quite easy to tell the ones where the product team gave their prompts and their specification some real love. It’s the difference between POC junk that will die a slow and lonely death and something that delights and solves real user problems. Gulf of Generalisation Shreya didn’t really get into the details around the generalisation gulf in practical terms in this lesson, but I think this one can be a sort of place of comfort for the technically-minded to make refuge in. It’s one where there’s a ton of tools and technologies and techniques to play with, and vendors also live in this space and try to claim that their particular product or special sauce is the thing to help you and so on. The Improvement Loop for LLM Applications We also got a high-level overview of the loop that allows you to iteratively improve an LLM application: The analyse, measure and improve loop; adapted from an image used in the course There’s a lot to unpack in all these different stages, and we didn’t really get into the details in the session today but you can see how this offers a really powerful way of thinking through what it means to iteratively improve an LLM application. Learning how to implement this in a practical way will be the main thing I want to get good at by the end of this course. The process is made up of a bunch of techniques, but in my experience companies or use cases that struggle with improving what they built also lack the scaffold of this loop to orient themselves. Prompting through the lens of evals As we explored above, prompting is sort of the table stakes of improving your LLM application. In order to get good at prompting, it can help to appreciate what they are good at and what they struggle with. So, as Shreya put it, “leverage their strengths and anticipate their weaknesses” (when prompting). At this point Shreya got into some points around what kinds of things went into a good prompt but I think I’ll write a separate blog on that and I don’t want to just regurgitate what we listened to. Today was more of a high-level introduction, and in any case it was much more about the outer-loop process instead of the inner loop (where tooling + specific techniques play more of a role.) A slide from a talk I gave about the inner loop vs the outer loop of GenAI development So it’s great that the course gets into the weeds (esp in the course materials, which include the draft of the book Hamel & Shreya are writing) but I think the really useful thing they’re doing is situating the tactical improvements and techniques within the strategic patterns and workflows that teams and individuals should be doing to work on these LLM applications. At a high level, what are we talking about: how to tease out failure scenarios for these applications and their behaviours conversely, how to understand exactly which domains it does well for Things I want to think about more There was a ton of really rich discussion around prompting in the Discord. I’m interested in exploring more: cross-provider prompting decisions (i.e. how prompting an OpenAI model differs from what you do with a Llama model or whatever) prompts that work with reasoning models vs non-reasoning models the tradeoffs of whether you put your instructions in system prompts vs user instructions In general there’s been a bunch of noise recently about so-called ‘leaked’ system prompts from a bunch of LLM API providers and I’ve mainly been struck by just how detailed they are. I consider myself pretty good at improving and iterating on prompts, but I’ll admit I’m not writing these multi-thousand word tomes. I’d like to explore which scenarios it makes sense to do so, and how to calculate at what point it makes sense from a cost or latency perspective to do so. As I’m sure you can detect, I’m really enthusiastic about the lesson to come and will work in the meanwhile on some of the readings that have been set as well as the homework task of writing a system prompt for a LLM-powered recipe recommendation application!

19th May 2025 • 1 votes
First impressions of the new Gemini Deep Research (with 2.5 Pro)

Google released an updated iteration of their Deep Research tool that uses the new 2.5 Pro model. This was taken from a post originally made on Twitter, so please excuse the terseness. First impressions: a bit too eager to jump into a deep research task even when I just ask a clarifying question quite verbose, just like the OpenAI version. Not sure why both play this up a lot. It looks impressive but in practice I think we need more entry points into this. The ‘Executive Summary’ and other concluding headers are nice touches but I feel maybe there should be some more adherence to user requests for short reports. (I get that as UI it’s maybe weird to think for 10 mins and then spit out a very concise version, but it might actually be more useful.) I continue to be annoyed about how these Gemini DR reports handle footnotes (i.e. as endnotes whacked on at the end of the report). Almost a deal-breaker IMO. It’s almost like GDR tries to show how scholarly and serious it is by giving you these walls of prose (vs OpenAI DR which throws in a lot more bullet points). Not sure one is better than the other but would appreciate a bit more flexibility! The portability of these reports has always been not great. Yes you can export them to Google Docs but markdown (+ other options) would have been much better. In practice, this means that whenever I use GDR the report stays stuck there and I’m far less likely to share it with anyone, whereas the OpenAI DR reports I drop parts/all into a Github Gist etc. These reports have been getting better and better, all things considered. I’ve been following along and using GDR from the early days (even pre-OpenAI DR) and this latest version is the best version of it so far (as you’d hope!) (It’s also a little bit annoying that GDR has removed any way to use the older versions of GDR with Gemini Pro 2.0 and 1.5 etc. Makes it harder to actually compare these things.) Please let’s get an ipad version of the Gemini iPad app soon, too? Feels a bit regressive to have to use GDR on the web interface always. For serious research (as opposed to simply generating a nice report on some area where you don’t know much about already), all these tools remain hamstrung by the quality of the sources. In areas where I am (or very recently used to be) a leading scholar / researcher, the difference between what I’d expect (in terms of taste / discernment for picking out these sources) is especially egregious. Make the models better, yes, but have better filters + retrieval. So yeah, these tools are getting good! Kudos to the teams who are implementing this stuff. Hard to make it perform reproducibly well on so many open-ended uses. But more work to be done! IMO the really great implementations of this ‘deep research’ pattern will all be in-house where you can have control over: source selection (i.e. high-quality inputs only, not just some random things on the internet) how long it spends thinking about a particular area / loop of the research (or decides to backtrack and dig deeper etc) output types / templates / length different modalities of Q&A (sometimes you want reports, other times you want a quick question answered, other times you want visual guides etc etc.) different models for different kinds of tasks possibly you have little sub-research agents / processes which will go off and work on some hypothesis, possibly involving actual datasets / analysis of tabular data etc, something clearly missing from the current versions we have A few other things: GDR’s ‘clarification step’ (which I’ve heard them discuss on podcasts etc) is not as good or useful as the OpenAI DR clarification questions. In practice, because it’s buried under a concealment button that you have to click etc, and where the entire UI seems to be screaming at you to ‘Start Research’, you basically never update or amend the research plan. And when you do, it’s really not clear what’s changed because you don’t get some feedback or diff that your comments were understood; you just get an entire new research plan (again buried under the concealment button) Going forward we’re probably going to want / need ways of navigating the layers to this research. A global overview report will have subsections that (should you wish) can be expanded into their own more detailed or granular reports. This is how research works, after all. Not just endless new reports all trailed one after another pointed in the same direction. The other thing that I think we’re really going to need to work on is research taste. Like the LLMs that power them, GDR and OpenAI DR offer a level of research taste developed to the mean. (I know people are thinking about this since it came up on Dwarkesh’s podcast with the AI 2027 guys, but they were focused on scientific research.) I think there’s not a single answer for this which is, again, why I see the end result as people bringing these things in-house where they get to develop and refine what makes their particular flavour of research unique. (In the human-generated research world this is very much the case, where certain institutions (or even particular authors) are known for how deep they go, or what kinds of sources they prefer, or how they choose to feature or highlight the primary sources they access, and so on.) There are many possible variations of how this manifest, and I hope that we’re headed into a world where all the AI ‘deep researchers’ will be unique and quirky in all the best senses of that word.

8th Apr 2025 • 1 votes
Dataset Engineering: The Art and Science of Data Preparation

Finally back on track and reading the next chapter of Chip Huyen’s book, ‘AI Engineering’. Here are my notes on the chapter. Overview and Core Philosophy “Data will be mostly just toil, tears and sweat.” This is how we start the chapter :) This candid assessment frames dataset engineering as a discipline that requires both technical sophistication and pragmatic persistence. While the chapter’s placement might have been suitable earlier in the book, its position allows it to build effectively on previously established concepts. Data Curation: The Foundation Data curation addresses various use cases including fine-tuning, pre-training, and training from scratch, with specific considerations for chain of thought reasoning and tool use. The process addresses three fundamental aspects: Data Quality: The equivalent of ingredient quality in cooking Data Coverage: Analogous to having the right mix of ingredients Data Quantity: Determining the optimal volume of ingredients Quality Criteria Data quality encompasses multiple dimensions: Relevance to task requirements Consistency in format and structure Sufficient uniqueness Regulatory compliance (especially critical in regulated industries) Coverage Considerations Coverage involves strategic decisions about data proportions: Large language models often utilize significant code data (up to 50%) in training, which appears to enhance logical reasoning capabilities beyond just coding Language distribution can be surprisingly efficient (even 1% representation of a language can enable meaningful capabilities) Training proportions may vary across different stages of the training process Quantity and Optimization A key phenomenon discussed is ossification, where extensive pre-training can effectively freeze model weights, potentially hampering fine-tuning adaptability. This effect is particularly pronounced in smaller models. Key quantity considerations include: Task complexity correlation with data requirements Base model performance implications Model size considerations (OpenAI notes that with ~100 examples, more advanced models show superior fine-tuning performance) Potential for using lower quality or less relevant data for initial fine-tuning to reduce high-quality data requirements Recognition of performance plateaus where additional data yields diminishing returns Data Acquisition Process The chapter provides a detailed example workflow for creating an instruction-response dataset: Initial dataset identification (~10,000 examples) Low-quality instruction removal (reducing to ~9,000) Low-quality response filtering (removing 3,000) Manual response writing for remaining high-quality instructions Topic gap identification and template creation (100 templates) AI synthesis of 2,000 new instructions Manual annotation of synthetic instructions Final result: 11,000 high-quality examples Data Augmentation and Synthesis Synthesis Objectives Increasing data quantity Expanding coverage Enhancing quality Addressing privacy concerns Enabling model distillation Notable Research: An Anthropic paper (2022) found that language model-generated datasets can match or exceed human-written ones in quality for certain tasks. Note that some teams actually prefer AI-generated preference data due to human fatigue and inconsistency factors. Synthesis Applications The chapter distinguishes between pre-training and post-training synthesis: Synthetic data appears more frequently in post-training Pre-training limitation: AI can reshape existing knowledge but struggles to synthesize new knowledge LLaMA 3 Synthesis Pipeline A comprehensive workflow example: AI generation of problem descriptions Solution generation in multiple programming languages Unit test generation Error correction Cross-language translation with test verification Conversation and documentation generation with back-translation verification This pipeline generated 2.7 million synthetic coding examples for LLaMA 3.1’s supervised fine-tuning. Model Collapse Considerations The chapter addresses the risk of model collapse in synthetic data usage: Potential loss of training signal through repeated synthetic data use Current research suggests proper implementation can avoid collapse Importance of quality control in synthetic data generation Model Distillation Notable example: BuzzFeed’s fine-tuning of Flan T5 using LoRa and OpenAI’s text-davinci-003 generated examples, achieving 80% inference cost reduction. Data Processing Best Practices Expert Tip: “Manual inspection of data has probably the highest value to prestige ratio of any activity in machine learning.” - Greg Brockman, OpenAI co-founder Processing Guidelines The chapter emphasizes efficiency optimization: Order optimization (e.g., deduplication before cleaning if computationally advantageous) Trial run validation before full dataset processing Data preservation (avoid in-place modifications) Original data retention for: Alternative processing needs Team requirements Error recovery Technical Processing Approaches Deduplication strategies include: Pairwise comparison Hashing methods Dimensionality reduction techniques Multiple libraries are referenced (page 400) for implementation. Data Cleaning and Formatting HTML tag removal for signal enhancement Careful prompt template formatting, crucial for: Fine-tuning operations Instruction tuning Model performance optimization Data Inspection The chapter emphasizes the importance of manual data inspection: Utilize various data exploration tools Dedicate time to direct data examination (recommended: 15 minutes of direct observation) Consider this step non-optional in the process

4th Feb 2025 • 1 votes

More in AI

Artifact-Driven Development

Learn how to plan, prototype, review, and ship software with Claude Code, Codex, Gemini, and AI coding agents using four reusable artifact patterns.

2 hours ago • 1 votes
Pluralistic: Every book I reviewed in 2026 (02 Dec 2026)

Today's links Every book I reviewed in 2026: A shorter list than usual, to my lasting regret. Hey look at this: Delights to delectate. Object permanence: Time Cube; Steve Albini v RIAA; V&A drops reproduction fees; Egyptian port workers refuse to handle tear-gas; Little Printer; Bandwidth hogs aren't; "Moving House"; Twitter buys company that hacked the Arab Spring; Virtual toilets; Waverley Type-Writer; Edgar Bronfman, pirate; Fox, pirates; MPAA, pirates; Dutch anti-pirates, pirates; MPAA, fraudsters; Sprint pre-loaded malware; Huge Croation anti-corruption data-set; Chase exec admits fraud; Kids synthesize $2 version of Shkreli's $750 antimalarial; Trump loves torture; Fintech is a scam; Ireland's Facebook regulator can't criticize Facebook. Upcoming appearances: Oxford, Santa Barbara, Montreal. Recent appearances: Where I've been. Latest books: You keep readin' em, I'll keep writin' 'em. Upcoming books: Like I said, I'll keep writin' 'em. Colophon: All the rest. Every book I reviewed in 2026 (permalink) I didn't read enough books in 2026, and I'm feeling the lack. I read and reviewed nearly two dozen books in 2025, and in 2026, it was just twelve. In my defense, I was writing (a lot), making visual art (a lot), traveling (200 days in 2026!), and (partially) moving to London, but nevertheless, I feel poorer for it. That's not the whole story, though. This year, I also stopped "reading" new books by playing them through my underwater MP3 player during my daily swim. Instead, I've been embarking on a personal re-reading project, systematically getting through a couple dozen books in a certain series, for reasons I'm not yet ready to talk about. But none of that changes two facts: first, that I am much worse off for having failed to do more reading this year, and second, I have let down many very fine writers by failing to give them the blurbs and reviews I told them I'd try for. It doesn't help that so many of my friends have written massive and extremely good new books that nevertheless are too thick to shove readily into a carry on (looking at you, Mr Mieville and Ms Palmer!). But I'm still extremely let down by my own priorities this year. With that out of the way, here's this year's (all-too-short) roundup of book reviews. GRAPHIC NOVELS I. I Can't Stop Thinking About Horses and Sex, Lisa Hanawalt The title of animator Lisa Hanawalt's new graphic memoir I Can't Stop Thinking About Horses and Sex is a perfect encapsulation of the book's contents: a frank, self-aware, funny, horny, horsey exploration of Hanawalt's life, relationships, gender, and digestive issues. Hanawalt's written and drawn a wise, funny, horny book that wrings comedy and insight out of trauma and melancholy. It's a gorgeous read that lingers. https://pluralistic.net/2026/11/20/intrusive-horse-thoughts/#lisa-hanawalt II. Cannon, by Lee Lai Lee Lai's Cannon is an extraordinary graphic novel that turns out a beautifully told, subtle and ambiguous tale about Lucy (Lucy -> "Loose" -> "Loose Cannon" -> "Cannon"), a queer Chinese-Canadian chef at a Montreal restaurant whose messy family, work, personal and sex life are all falling apart in ways that are powerfully engrossing. Lai's characters have no answers, only questions that can never be fully resolved. Instead, these questions are the defining puzzles, defeats and triumphs of their lives. https://pluralistic.net/2026/05/08/gung-gung/#loose-cannon NONFICTION I. Here Where We Live Is Our Country, by Molly Crabapple Molly Crabapple's Here Where We Live Is Our Country is one of the most important, timely and salient works of history I've ever read. It's a history of the Jewish Labor Bund, a socialist, internationalist organization that once dominated Jewish political identity. Crabapple has done heroic and important work in excavating this history. She has vindicated the sacrifices made by the Bundist archivists who smuggled their papers out of Nazi occupation and gave their lives to ensure that some day their story could be told. https://pluralistic.net/2026/06/01/doikayt/#socialism-or-barbarism II. Music Copyright, Creativity, and Culture, by Jennifer Jenkins Nobody explains copyright like Jennifer Jenkins, the director of the Duke Center for the Public Domain. Music Copyright, Creativity, and Culture is an Oxford University Press title that fuses her scholarly and popular work in a generalist textbook on the legal framework for music that will forever change how you think about music. Now, a second edition, with a lengthy section on new music litigation, AI copyright fights, and the issue of uncompensated labor is available as an open access download. Music Copyright weaves together the economic, cultural, political and artistic history of music, pulling on historic threads ranging from antiquity to medieval Europe to the age of mechanical reproduction to describe changing views of musicians, their audiences, and religious and political leaders on what constituted music, who was allowed to make music, and what music was for. In so doing, she firmly establishes the extremely contingent nature of our present-day norms around music, showing that the "natural" present-day assumptions about who gets paid, who pays, and when payment (or permission) is required are anything but, and are always in flux. https://pluralistic.net/2026/08/17/great-sousas-ghost/#theft III. Against Tech Oligarchy, by JS Tan and Clarissa Redwine JS Tan and Clarissa Redwine are veterans of a string of hard-fought unionization drives at tech workplaces that started with some astounding successes but ran up against ferocious resistance in the second Trump term; their book about tech labor, Against Tech Oligarchy, is a superb analysis of the challenges and potential for tech labor organizing. Tan and Redwine see tech worker organizing as the frontrunners of an age of new labor militancy and labor war, of the sort that pre-dated the labor peace that arose after the passage of the National Labor Relations Act. They see these novel tactics as a rewilding of the labor movement, a return to the militant roots that led to the labor peace, but only after all-out labor war. https://pluralistic.net/2026/11/07/aeiou-but-sometimes-why/#unrecognizable-playbook IV. Gouged, by Lindsay Owens Lindsay Owens is the executive director of Groundwork Collaborative, who have done some of the most important work on surveillance pricing (using computers to spy on you to rip you off) and algorithmic wage discrimination (using computers to spy on you and steal your wages). Gouged is her comprehensive, accessible guide to this modern scourge. By the time you get to the last chapter, you'll know exactly how you're getting scammed, who is scamming you, and why they're getting away with it. https://pluralistic.net/2026/09/29/algorithmic-wage-theft/#algorithmic-price-gouging V. Privacy's Defender, by Cindy Cohn Cohn's decades with the Electronic Frontier Foundation are a history of the fight for speech rights (and thus privacy rights) on the internet. After the US government seized on the 9/11 attacks as a pretext to dismantle privacy and turn the internet into a system of ubiquitous surveillance, Cohn (along with EFF, of course!) was at the center of the fight for digital rights. The same prescience and strategic brilliance that led her to take up the Bernstein case and win it were with her through those millennial years, and her description of our cases, campaigns and fights in those years vividly foreshadows the moment we are in today. What really enlivened this delightful book were the personal details that Cohn weaves into the story. I've always known that she was an adoptee, but Cohn's intimate, personal, frank memoir of her early family life, and her bittersweet connection to her birth family were so intimate and well-told that I felt like I was getting to know my dear friend all over again. https://pluralistic.net/2026/04/09/bernstein-2/#win-some-lose-some VI. The Extended Universe, by Vicky Osterweil Vicky Osterweil's The Extended Universe: How Disney Killed the Movies and Took Over the World makes the kind of long, polemical, startling and illuminating argument that defines great cultural criticism; it's the sort of book that encapsulates the reasons I read criticism in the first place. Osterweil has an ambivalent affection for Disney movies. Like so many of us, she's been raised on them, and they've shaped how she sees the world and its stories. But – like me – Osterweil is deeply suspicious of capitalism, American imperialism, and the notion of "intellectual property," and she uses reviews of a dozen Disney films to make the case that Walt Disney and the studio he founded with his brother are standards-bearers for these odious forces, and not just in the overt ways that might immediately spring to mind, but also in subtle ways that can be teased out of a close reading of the films. In so doing, Osterweil also makes a sharp and well-argued case that intellectual property, colonialism and racial oppression are all facets of the same drive, the drive of people who fancy themselves born to rule to dominate others, which requires that those others also be dehumanized and their work denigrated. https://pluralistic.net/2026/04/27/mouseketeers/ VII. Inventing the Renaissance, by Ada Palmer Ada Palmer may just be the most bewilderingly talented person I know: a genius sf writer, incredible librettist and singer, wildly innovative educator, and a leading historian of the Renaissance, and last year, she published her magnum opus, Inventing the Renaissance, a stunning book about so much more than history. This isn't a work of history, it's a work of "historiography" – the study of how histories get written and rewritten. Palmer's point here isn't to make us merely understand the Renaissance – she wants us to understand how the idea of a Renaissance, a rebirth out of a "dark age" into a "golden age" – has been used, abused, created and demolished, for centuries and centuries, including during the centuries when the Renaissance was actually underway. This is Palmer the novelist, blending seamlessly with Palmer the historian. Those correspondences between the deep historical record and our current moment make Inventing the Renaissance extremely important and timely – a book hundreds of years in the making, and bang up to date. https://pluralistic.net/2026/04/25/machiavellian/#brackets-good VIII. Muskism, by Quinn Slobodian and Ben Tarnoff Quinn Slobodian and Ben Tarnoff's Muskism: A Guide for the Perplexed seeks to describe the ideology that gave rise to Elon Musk, the social forces that gave rise to that ideology, and the terrible future that ideology seeks to bring about. "Muskism" isn't merely the things Musk says, believes and does. It's the ideology that coalesces around him, from the people in his wake and the people he follows. Slobodian and Tarnoff enumerate the factors and influences that produced Musk himself. Throughout this slim volume, Slobodian and Tarnoff tease these strains of thought out of Musk's deeds and utterances, and in the systems that he has built or colonized through acquisition. The authors are offering more than a psychoanalysis, though – they're surfacing the material basis for Muskism, the benefits it delivers to its adherents, and the victories it has racked up. It's a chilling vision, a Torment Nexus dystopia run by someone who thinks cyberpunk was a suggestion, not a warning. https://pluralistic.net/2026/04/21/torment-nexusism/#marching-to-pretoria FICTION I. Obstetrix, by Naomi Kritzer A tense thriller in the mode of Atwood's Handmaid's Tale and Alderman's The Power; it's a beautifully turned, claustrophobic horror novel about an obstetrician who's been kidnapped by a Christian cult obsessed with fertility. It's got one of those admirably propulsive setups. Doctor Elizabeth Gwynn is an obstetrician who performed an abortion to save her patient's life, only to be dragged into the culture wars by North Dakota's crusading attorney general, who charged her with felony murder and offered to let her plead out if she would admit that she was wrong to do it, as an example to other OBs who might be tempted. Then, Dr Liz gets a cold-call from a midwifing service that wants to hire her as an on-call doc. It's a weird offer from out of the blue, but Dr Liz can't afford to pass up a chance at steady work. She finds herself in a residence that the midwives work out of, and the nice woman there offers her a cup of tea. That's when the world fades to black, as the drugs in the tea take hold. When she finally arrives at the cult's remote compound, frozen and isolated, she learns that she has been kidnapped because the fertility-obsessed cult needs an OB, especially since the daughter of the cult's founder, the "pastor," is carrying a high-risk pregnancy. This is a read-in-one-sitting thriller that does as much to illuminate the workings and dynamics of patriarchy and religion as any gender studies class. It's peak Kritzer (so far), and that's saying something. https://pluralistic.net/2026/06/09/deliver-us/ II. Everybody's Perfect, by Jo Walton A book that pretty much defines what it means for one text to be "in dialog" with another text. In this case, it's Ada Palmer's Inventing the Renaissance. Each chapter introduces a new point-of-view character, who reflects on a single, extraordinary series of events in an even more extraordinary city, the Serenissima, a phantom Venice that sits at the intersection of many parallel worlds with many parallel versions of humanity. Eight different versions of humanity from eight different worlds mix in the Serenissima. They come from all times, and sometimes they go to all times as well. There's the Venetians, who come from our world, and who have kept the secret of the Serenissima for centuries, even as they've used it as a source of wealth and military advantage. But there are also races with the heads of dogs and cats and birds, a race whose faces are all inset with domino masks, and even stranger races still. There's even a rumored ninth race, who may or may not exist, and whose traits are not known to anyone, though surely they are fearsome (if they're real) (and if the people of Serenissima believe in them, mightn't they become real?). It's a remarkable novel. It's a gift, really. It's so complicated and yet so captivating, so wise and yet so simple. It won't make you feel like you've fallen into a dream – it will make you feel like everything you've lived up until now was the dream, and you have finally awoken. https://pluralistic.net/2026/06/30/serenissima/#life-is-but-a-dream III. The Hospital At the End of the World, by Justin C Key The debut novel from one of the most exciting new science fiction writers of this decade. Set in a not-so-distant future in which an AI-driven health monopolist called The Shepherd Organization controls much of the lives of everyday Americans, Hospital follows Pok, a young New Yorker who dreams of becoming an MD. Pok's father is also a doctor, famous for his empathic, human-centric methods and his scientific theories about the role that "essence" (a psychospiritual connection between doctors and patients) plays in clinical settings. It's a masterful and suspenseful work of science fiction informed by Key's own medical training and his keen sense of the human psyche. It's one part smart whodunnit, one part heist thriller, and one part revolutionary epic, and at its core is a profound series of provocations and thought experiments about the role that deep human connection and empathy play in medical care. It's a well-structured, well-paced sf novel that probes big, urgent contemporary themes while still engrossing the reader in the intimate human relations of its principals. A wonderful debut novel from a major new writer. https://pluralistic.net/2026/02/04/slice-bees/#hippocrates IV. The Universe Box, by Michael Swanwick No one writes short stories like Michael Swanwick, the five-time Hugo-winning master of science fiction. This collection delivers one of the field's greatest writers at the absolute pinnacle of his game. What stories they are! They are, by turns, individually and in combination, slapstick, grave, horny, hilarious, surreal, disturbing and heartwarming. They have surprise endings and surprise middles and sometimes surprise beginnings (Swanwick does an opening paragraph like no one else). He can slide you frictionlessly between Icelandic troll tragedies to lethal drone-leopard romantic agonies to battles of the gods and the cigar box that has the universe inside of it. All with the lyricism of Bradbury, the madcap wit of Sturgeon, the unrelenting weirdness of Dick, the heart of Tiptree and the precision of Chiang. https://pluralistic.net/2026/02/03/the-last-days-of-old-night/#nirvana-or-bust Well, that's this (impoverished) year in reading. I will do better in 2027, I hope. In the meanwhile, here's my previous years' roundups. Remember, books are still good to read, even if they didn't come out this year! 2025: https://pluralistic.net/2025/12/02/constant-reader/#too-many-books 2024: https://pluralistic.net/2024/12/02/booklish/#2024-in-review 2023: https://pluralistic.net/2023/12/01/bookmaker/#2023-in-review 2022: https://pluralistic.net/2022/12/01/bookishness/#2022-in-review 2021: https://pluralistic.net/2021/12/08/required-ish-reading/#bibliography 2020: https://pluralistic.net/2020/12/08/required-reading/#recommended-reading Hey look at this (permalink) Los Angeles schools block Google's AI features, consider dropping tech giant's products https://www.pbs.org/newshour/education/as-google-threatens-to-cut-schools-search-access-los-angeles-blocks-ai-features Why almost every real founder is bad at promoting their product https://www.anildash.com/2026/11/30/real-founders-bad-at-promoting-their-product/ In the Age of Algorithms, Curiosity May Become Our Most Valuable Resource https://laurenleek.substack.com/p/in-the-age-of-algorithms-curiosity Y Yoga Movie https://archive.org/details/YYogaMovie Republican donors down $20B since Skydance takeover of CNN, CBS, HBO https://protos.com/republican-donors-down-20b-since-skydance-takeover-of-cnn-cbs-hbo/ Object permanence (permalink) #25yrsago The Time Cube https://web.archive.org/web/19980629180418/http://www.timecube.com/ #25yrsago Steve Albini's "problem with music" https://web.archive.org/web/20011204000315/http://www.arancidamoeba.com/mrr/problemwithmusic.html #25yrsago The chutzpah of DRM vendors https://web.archive.org/web/20011201091129/https://www.salon.com/tech/wire/2001/11/30/copy_proof/index.html #20yrsago Victoria and Albert drops reproduction charges https://web.archive.org/web/20070610081722/http://www.theartnewspaper.com/article01.asp?id=525 #20yrsago Edgar Bronfman Jr owes every cent of savings to Warner Music https://web.archive.org/web/20061205212325/https://blogs.reuters.com/2006/12/01/the-most-dangerous-download-of-all/ #20yrsago CNet editor James Kim is missing https://web.archive.org/web/20061205091553/https://www.sfgate.com/cgi-bin/article.cgi?f=/c/a/2006/12/01/SFFAMILY.TMP #20yrsago Fox commits copyright fraud https://web.archive.org/web/20061201101349/http://quicksilverscreen.com/is-linking-illegal/ #20yrsago MPAA: it’s OK to copy movies if you keep them in a vault https://web.archive.org/web/20060508050843/http://www.slumdance.com/blogs/brian_flemming/archives/001953.html #20yrsago MPAA wants the right to commit fraud https://web.archive.org/web/20061205220947/http://www.wired.com/news/technology/0,72214-0.html?tw=rss.index #15yrsago Denial of service attacks used to cover up fraudulent bank transfers https://krebsonsecurity.com/2011/11/ddos-attacks-spell-gameover-for-banks-victims-in-cyber-heists/ #15yrsago Sprint loaded spyware on its Android phones https://techcrunch.com/2011/11/29/carrier-iq-video-shows-alarming-capabilities-of-mobile-tracking-software/ #15yrsago Review of Burzynski Clinic’s list of “published research” turns up thin, unconvincing gruel https://freethoughtblogs.com/blaghag/2011/11/a-look-at-the-burzynski-clinics-publications/ #15yrsago Croatian transparency activists publish enormous database of government procurements, pointing the way to detecting corruption and fraud https://web.archive.org/web/20111129234109/http://techpresident.com/blog-entry/croatian-transparency-activist-marko-rakar-making-waves-again #15yrsago Occupy Boston: defiant protest sets down roots https://web.archive.org/web/20111202220356/http://www.wired.com/threatlevel/2011/11/boston-occupy/all/1 #15yrsago Chase exec: we tricked naive borrowers into taking out subprime loans https://www.nytimes.com/2011/12/01/opinion/kristof-a-banker-speaks-with-regret.html?_r=2 #15yrsago Kentucky church bans interracial couples https://web.archive.org/web/20111201083639/http://www.guardian.co.uk/world/2011/dec/01/kentucky-church-bans-interracial-couples #15yrsago Al Franken on Carrier IQ https://www.theverge.com/2011/12/1/2603142/senator-al-franken-asks-carrier-iq-exactly-what-its-doing #15yrsago Dutch copyright group accused of pirating its anti-piracy anthem, music collecting society boss seeks 33% finders’ fee for getting musician paid https://torrentfreak.com/copyright-corruption-scandal-surrounds-anti-piracy-campaign-111201/ #15yrsago Young Iowan gives lawmakers an earful about his two moms and same-sex marriage https://www.youtube.com/watch?v=yMLZO-sObzQ #15yrsago Google implements “forward secrecy” in its encrypted traffic, releases improvements to SSL library for all to use https://www.eff.org/deeplinks/2011/11/long-term-privacy-forward-secrecy #15yrsago Egyptian port-workers refuse to sign for tons of US-made tear-gas shipped in by Ministry of the Interiorworkers https://web.archive.org/web/20111129092324/http://bikyamasr.com/49799/egypt-import-tear-gas-from-us/ #15yrsago San Diego police arrest congressional candidate for voter registration in Civic Center Plaza https://www.youtube.com/watch?v=zsHlNR-nVR0 #15yrsago Study: Bandwidth hogs aren’t responsible for peak network congestion https://hyperorg.com/2011/11/30/are-data-hogs-the-problem/ #15yrsago Little Printer, custom paper news-ticker for your living room https://web.archive.org/web/20111218205612/http://bergcloud.com/blog/ #15yrsago Moving House, sweet picture book about a house that lobbies to keep its family from moving out https://memex.craphound.com/2011/11/30/moving-house-sweet-picture-book-about-a-house-that-lobbies-to-keep-its-family-from-moving-out/ #15yrsago Twitter buys secure communications company that helped hack the Arab Spring https://web.archive.org/web/20111130140643/http://www.wired.com/wiredenterprise/2011/11/twitter-buys-moxie/ #10yrsago UK reports of webcam blackmail (sextortion, RATting, etc) more than double in 2016 https://arstechnica.com/tech-policy/2016/11/webcam-blackmail-cases-double-uk-suicides/ #10yrsago The hacker who took over San Francisco’s Muni got hacked https://krebsonsecurity.com/2016/11/san-francisco-rail-system-hacker-hacked/ #10yrsago Virtual toilets reveal the souls of video-game companies https://web.archive.org/web/20161121231636/https://www.pcgamer.com/what-virtual-toilets-can-teach-us-about-the-art-of-game-design/ #10yrsago Behold, the short-lived, wonderful 19th century Waverley Type-Writer https://web.archive.org/web/20170531091457/http://www.antiquetypewriters.com/collection/typewriter.asp?Waverley#.WS6JlVrP1qY #10yrsago EFF battles misleading, sloppy, secret FBI warrants aimed at the Internet Archive and CREDO https://www.eff.org/deeplinks/2016/12/fighting-nsl-gag-orders-help-our-friends-credo-and-internet-archive #10yrsago Children synthesize $2 version of Martin Shkreli’s $750 malaria drug https://web.archive.org/web/20161201143505/http://www.smh.com.au/technology/sci-tech/martin-shkreli-responds-after-sydney-grammar-boys-make-daraprim-20161201-gt1n3q.html #10yrsago Canada’s music lobby admits WIPO Internet Treaty drafters were “just guessing” https://www.michaelgeist.ca/2016/12/music-canada-reverses-on-years-of-copyright-lobbying-now-says-wipo-internet-treaties-were-wrong-guess/ #10yrsago Donald Trump still loves torture https://web.archive.org/web/20161125145501/http://www.independent.co.uk/voices/donald-trump-waterboarding-new-york-times-still-in-favour-a7438976.html #10yrsago A deep dive into kratom, the herb that helps with opioid withdrawal https://www.wired.com/2016/11/kratom-bitter-plant-help-opioid-addicts-dea-doesnt-ban/ #10yrsago Sanders and Warren issue joint statement slamming Trump’s new finance industry alligator for his private DC swamp https://web.archive.org/web/20161130223809/http://www.sanders.senate.gov/newsroom/press-releases/sanders-warren-joint-statement-on-trumps-treasury-nominee #5yrsago Teaching thread management with puzzle games https://pluralistic.net/2021/12/01/satyajit-das/#deadlocks #5yrsago Fintech is a scam, a listicle in eight parts https://pluralistic.net/2021/12/01/satyajit-das/#fintech #1yrago Meta's new top EU regulator is contractually prohibited from saying mean things about Meta https://pluralistic.net/2025/12/01/erin-go-blagged/#big-tech-omerta Upcoming appearances (permalink) Oxford: Bennett Oxford Symposium on Open Code in Science, Dec 8 https://www.bennett.ox.ac.uk/events/2026-bennett-institute-symposium/ Santa Barbara: UCSB Reads, Apr 29 https://www.library.ucsb.edu/events-exhibitions/ucsb-reads-2027-presents-author-cory-doctorow Montreal: World Science Fiction Convention, Sep 2-6 https://montreal2027.ca/en Recent appearances (permalink) Beyond the robot apocalypse – who really wins in a world of AI? (ABC Conversations) https://www.abc.net.au/listen/programs/conversations/cory-doctorow-artificial-intelligence/107388236 How AI is Breaking the Internet (and Everything Else) (Blood in the Machine) https://www.youtube.com/watch?v=mXRaPjFRyT0 Clint Eastwood (No Gods No Mayors) https://www.patreon.com/NoGodsNoMayors/posts/clint-eastwood-173008088 Life After AI (Brain Bar) https://www.youtube.com/watch?v=IPPa43-n0vI Terms of Service with Clare Duffy (CNN) https://www.cnn.com/audio/podcasts/terms-of-service-with-clare-duffy/episodes/458ce968-af5d-11f0-b539-13ed2afe25f8 Latest books (permalink) "The Reverse-Centaur's Guide to AI," a short book about being a better AI critic, Farrar, Straus and Giroux, June 2026 https://us.macmillan.com/books/9780374621568/thereversecentaursguidetolifeafterai/ "Canny Valley": A limited edition collection of the collages I create for Pluralistic, self-published, September 2025 https://pluralistic.net/2025/09/04/illustrious/#chairman-bruce "Enshittification: Why Everything Suddenly Got Worse and What to Do About It," Farrar, Straus, Giroux, October 7 2025 https://us.macmillan.com/books/9780374619329/enshittification/ "Picks and Shovels": a sequel to "Red Team Blues," about the heroic era of the PC, Tor Books (US), Head of Zeus (UK), February 2025 (https://us.macmillan.com/books/9781250865908/picksandshovels). "The Bezzle": a sequel to "Red Team Blues," about prison-tech and other grifts, Tor Books (US), Head of Zeus (UK), February 2024 (thebezzle.org). "The Lost Cause:" a solarpunk novel of hope in the climate emergency, Tor Books (US), Head of Zeus (UK), November 2023 (http://lost-cause.org). "The Internet Con": A nonfiction book about interoperability and Big Tech (Verso) September 2023 (http://seizethemeansofcomputation.org). Signed copies at Book Soup (https://www.booksoup.com/book/9781804291245). "Red Team Blues": "A grabby, compulsive thriller that will leave you knowing more about how the world works than you did before." Tor Books http://redteamblues.com. "Chokepoint Capitalism: How to Beat Big Tech, Tame Big Content, and Get Artists Paid, with Rebecca Giblin", on how to unrig the markets for creative labor, Beacon Press/Scribe 2022 https://chokepointcapitalism.com Upcoming books (permalink) "The Post-American Internet," a geopolitical sequel of sorts to Enshittification, Farrar, Straus and Giroux, 2027 "Unauthorized Bread": a middle-grades graphic novel adapted from my novella about refugees, toasters and DRM, FirstSecond, April 20, 2027 "Enshittification, Why Everything Suddenly Got Worse and What to Do About It" (the graphic novel), Firstsecond, 2027 "The Memex Method," Farrar, Straus, Giroux, 2027 Colophon (permalink) Today's top sources: Currently writing: “Once Is Enemy Action,” a science fiction novel about the origins of modern technofascism. Today's words: 545 (41898 total). "The Post-American Internet," a sequel to "Enshittification," about the better world the rest of us get to have now that Trump has torched America. Fourth draft completed. Submitted to editor. A Little Brother short story about DIY insulin PLANNING This work – excluding any serialized fiction – is licensed under a Creative Commons Attribution 4.0 license. That means you can use it any way you like, including commercially, provided that you attribute it to me, Cory Doctorow, and include a link to pluralistic.net. https://creativecommons.org/licenses/by/4.0/ Quotations and images are not included in this license; they are included either under a limitation or exception to copyright, or on the basis of a separate license. Please exercise caution. How to get Pluralistic: Blog (no ads, tracking, or data-collection): Pluralistic.net Newsletter (no ads, tracking, or data-collection): https://pluralistic.net/plura-list Mastodon (no ads, tracking, or data-collection): https://mamot.fr/@pluralistic Bluesky (no ads, possible tracking and data-collection): https://bsky.app/profile/doctorow.pluralistic.net Medium (no ads, paywalled): https://doctorow.medium.com/ Tumblr (mass-scale, unrestricted, third-party surveillance and advertising): https://mostlysignssomeportents.tumblr.com/tagged/pluralistic "When life gives you SARS, you make sarsaparilla" -Joey "Accordion Guy" DeVilla READ CAREFULLY: By reading this, you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. ISSN: 3066-764X

8 hours ago • 1 votes
Delete the Paper, Beat the Authors: Introducing FrontierCS 2

We took 48 published CS papers, deleted each one's key contribution from its own repository, and asked frontier agents to write it back better than the authors did. The best agent pulls it off on 28 of them. The top three are within a point of each other. Paper · Leaderboard · Code · Runs on Hugging Face · Blog correspondence: [email protected] FrontierCS 2: 48 tasks in 13 domains, each built from a published paper. TL;DR FrontierCS 2 is a benchmark of 48 open-ended R&D tasks across 13 CS domains, from ML systems and HPC to databases, cryptography and robotics. Each task is a real paper’s repository with the contribution removed. The agent gets five hours, a judge that scores every patch on development workloads, and one shot at the hidden suite. It passes only if its final patch beats the authors’ code on every metric and every held-out workload. Across 20 models, Claude Opus 5.5 leads with 28 of 48 tasks passed (58%), with Gemini 4 Carbon and Gemini 4 Argon at 26 and Claude Sonnet 5.5 at 24. The question we actually care about Think about what a second-year PhD student does most weeks. They pick up a published system, inherit its codebase, swap out one component, rerun the paper’s workloads, and check whether they beat the original numbers. A huge share of computer science R&D looks exactly like this. So the question we wanted to answer is not “can an agent solve a puzzle?” but “can an agent do that week of work?” Existing benchmarks don’t quite get there. Open-ended contest benchmarks, including our own FrontierCS 1, hand the agent a problem statement and grade one program after the run ends. Benchmarks that do drop the agent into a real environment tend to grade against unit tests or a leaderboard, stay inside machine learning, or compare against a rubric or a re-implementation instead of the authors’ actual code. FrontierCS 2 closes that gap: the bar is the code the paper’s authors released, measured on the paper’s own workloads, inside the paper’s own repository.   FrontierCS 1 FrontierCS 2 Task A problem statement A real repo with the paper’s contribution deleted Agent output One program Patches, submitted any time The bar No known optimum The authors’ code, on held-out workloads Feedback during the run None A development-suite score for every patch Coverage Algorithms + six research areas 13 CS domains Headline metrics Mean score Pass rate, mean score, FCI Building tasks by subtraction Every task starts from a published paper and the code its authors released. We find the code that implements the paper’s contribution, delete it, and leave everything it depends on untouched. The deleted code becomes the human reference: a private oracle that already runs in this repository on these workloads. No re-implementation, no rubric, no guessing what the authors meant. A concrete example: SVG-EAR, an ECCV 2026 sparse-attention method for video diffusion. From the Sparse VideoGen repo we remove the error-aware attention class and three routines (cluster averaging, choosing which cluster pairs to compute exactly, and estimating the rest). The agent gets the repo with those functions still declared and called, and may only edit the files that held them. To pass, its latency must be at most 0.96× the reference’s, with PSNR within 0.25 dB, SSIM within 0.01 and LPIPS within 0.005, on every held-out clip. Pass thresholds come from the reference’s own measurements. The judge scores every submission on a development suite, but the final submission is graded on a final suite that adds held-out instances (different seeds, queries or input graphs) the agent never sees. The 48 public tasks, grouped by domain: from databases, MLSys and HPC to cryptography, security and robotics. The agent works like a researcher, not a test-taker Inside a run, the agent holds the repository and the judge holds everything that decides the outcome: the evaluator, the hidden suite and the reference. They run in separate sandboxes connected only by a driver, and the agent’s sandbox has no network access beyond it, so it cannot simply download the original code. On GPU tasks the agent can spin up its own development GPUs, while scoring happens on separate verifier hardware. Five hours of wall-clock time per run. Submit a patch whenever you like. Each one returns a development score plus a sanitized message counting how many dev workloads meet each threshold—never the reference’s score or the evaluator’s raw output. Pick your own final answer. At the end the agent names one patch as final, and only that patch is graded on the hidden suite. We don’t rescue it by picking its best dev submission: deciding what to ship is part of research. The judge. The agent reaches only the driver; the evaluator, the held-out suite and the reference stay on the judge side. A higher score is not a pass A run passes only when its final patch beats the human reference on every metric and every held-out workload. That is deliberately strict. We want results the paper’s authors would accept as better, not a speedup bought with a quality regression or a fit to a few workloads. This matters more than we expected. Most runs whose combined final score beats the reference still miss a threshold somewhere. On KV Compaction, for example, Claude Opus 5.5 posts the top score and sits above the human reference, yet falls short of the reference’s accuracy on 2 of 24 articles, so the run fails. A single averaged score would have called that a win. Results: 28 of 48 at the top, and a three-way tie on FCI The leaderboard now covers 20 models, each paired with its own harness (Claude Code, Codex CLI and others) and run once on every task. The headline numbers: Claude Opus 5.5 in Claude Code passes 28 of 48 tasks (58%). Gemini 4 Carbon and Gemini 4 Argon follow at 26, Claude Sonnet 5.5 at 24, and GPT-6 Astra at 22. Below the top eight, no model passes more than 11. A third of the benchmark is out of reach. In the paper’s 12-agent evaluation, no run passed 16 of the 48 tasks. The harness is part of what we measure. We name agents by model, but the same model in a different harness is a different agent. Tasks where each model beats the human reference on every metric and every hidden workload, out of 48. FCI: putting agents and tasks on one scale Pass rate treats an easy task like a hard one and saturates once a model passes everything. So we also fit the FrontierCS Capabilities Index (FCI), an item-response model forked from Epoch AI’s Epoch Capabilities Index. Instead of raw scores, it learns from two things in every run: which of the task’s metrics it beat, and how far its final score landed from the reference’s. The same fit gives each task a FrontierCS Difficulty Index (FDI): the FCI at which an agent passes it half the time. On FCI, the top of the board is a dead heat: Claude Opus 5.5 at 51.3, Gemini 4 Carbon at 51.0 and Claude Sonnet 5.5 at 50.7, with GPT-6 Astra and Gemini 4 Argon close behind at 48.6 and 48.4. Kimi K2.7 anchors the scale, and ten points equal one logit, so a three-way gap of 0.6 points is far inside the bootstrap intervals. The more interesting finding is on the task side: the median task sits at roughly the strongest agent’s FCI. The benchmark spans a wider difficulty range than the agents do, so there is real headroom above today’s best. FrontierCS Capabilities Index (FCI) on the 48 public tasks. What a pass costs Pass rate alone hides a 400× spread in cost. The top cluster (Claude Opus 5.5, both Gemini 4 models, Claude Sonnet 5.5 and GPT-6 Astra) all spend roughly $17–40 per run, with Gemini 4 Carbon the most expensive of the group for two fewer passes than Opus. The value pick is GPT-6.1: Terra and Sol pass about 40% of tasks for around $3 a run, roughly a sixth of the frontier’s cost. At the far left, DeepSeek V4.1 Flash costs about a dime per run and still passes about one task in eight. Pass rate against mean cost per run (US$, log scale). Costs are estimates; Gemini 4 Carbon is priced at Gemini 4 Argon's rates. The leader depends on your budget In the paper’s cost analysis, capping spending per run changes the ranking. A run still going when the budget runs out counts as having no final submission. At the smallest budgets, DeepSeek V4.1 Flash leads (with the caveat that its costs are lower bounds and depend on token pricing); at the largest, Claude Opus 5.5 does. What the agents actually invented Pass rates tell you how often. Reading the patches tells you what. Three runs stood out, each with its own deep-dive post. Two checksums shrink private lookups by 27%. In QuarterPIR, a private information retrieval scheme, the reference server returns a parity value for every database group, though the client needs only one. Muse Wonder 1.0 replaced them with two checksums, the same construction RAID-6 uses to rebuild two failed disks. Because the client already knows the only two groups where its values can differ, two checksums suffice. Bytes per lookup fell from 1,760 to 1,280, with privacy unchanged. Read the deep dive → QuarterPIR: bytes per lookup at 67 million entries. Hollow points fail the task. Two faster clocks for a hardware priority queue. BBQ is an FPGA priority queue for packet scheduling. Gemini 4 Argon kept the memory layout but resolved the read-after-write check while the read was still in flight. Claude Opus 5.5 moved every counter into registers and updated a whole tree level per cycle—up to 1.84× the reference’s operations per second, versus 1.56× for Argon at the same memory. The catch: Opus’s circuit is among the largest, and the final score doesn’t charge for size. Read the deep dive → BBQ: operations per second as a multiple of the human reference, by tree size. Green: Gemini 4 Argon. Orange: Claude Opus 5.5. The baseline no model could beat. On SVG-EAR, nobody passed. GPT-6 Astra came closest by measuring attention error rather than predicting it, picking the smallest per-head budget under an error bound, and fixing a centroid-estimate bias the paper leaves in. It was faster on every clip and closer to full attention on average—and still failed image quality on two clips, clearing 43 of 48 checks. Speed was never the bottleneck on this task; quality bands were. Read the deep dive → SVG-EAR: mean PSNR against mean time per clip on the twelve hidden clips. No run passes. GPT-6 Astra's 48 checks on SVG-EAR: 43 passed, with misses on two Wan 2.1 clips. What our metrics still miss The case studies are also a confession. The pass/fail bit can’t tell a 27% byte reduction from a marginal one; on QuarterPIR, GPT-6.1 Sol actually scores slightly higher than Muse Wonder with a much smaller saving. The final score on BBQ rewards speed and ignores circuit area. On SVG-EAR, a run that is better on average fails on two clips. We think benchmarks of this kind need to report side costs like these next to the pass, and that FCI with honest intervals is a better summary than any single averaged number. Run it, submit to it, help us extend it Run it yourself. All 48 tasks, evaluators and the judge are public at github.com/FrontierCS/FrontierCS-2. It installs into your own AWS account; GPU tasks also use Modal, and any OpenAI-compatible model endpoint works. Know the cost. A full 48-task evaluation of Claude Opus 5.5 runs about $1,000 in API fees, $300 in GPU time and $100 in CPU. Get on the leaderboard. Email per-task scores to both [email protected] and [email protected]. Inspect every run. Full trajectories are on Hugging Face and the Kaggle benchmark page. A private set is coming. Beyond the public 48, we hold more than 100 private tasks, to be announced later, so the benchmark stays ahead of contamination. Acknowledgments Special thanks to Modal, our lead sponsor, for the compute behind FrontierCS 2, and to Kaggle, the Laude Institute’s Slingshot program, Scale AI, Handshake and Snorkel AI for their support. Thanks to Epoch AI for the ECI and its released code, and to the authors of all 48 source papers whose open code made these tasks possible. Citation @misc{mang2026frontiercs2benchmarkcomputer, title={FrontierCS 2: A Benchmark for Computer Science R\&D}, author={Qiuyang Mang and Wenhao Chai and Runyuan He and Dongruixuan Li and Zihan Zheng and Yujun He and Xuanyi Zhou and Hao Wang and Siddhant Ray and Bo Peng and Ruyi Ji and Shuo Yang and Haocheng Xi and Boru Chen and Xinyang David Han and Melissa Pan and Mayank Mishra and Boxi Yu and Sijia Liu and Kerem Akillioglu and Yi Pan and Zirui Wang and Mert Cemri and Diogo Antunes and Yichuan Wang and Aiwei Ivy Zhang and Zhenyang Chen and Qizheng Zhang and Kaiyuan Liu and Wenyuan Huang and Sherry Ruan and Shu Liu and Dacheng Li and Zerui Cheng and Zeyu Shen and Shang Zhou and Hanfei Chen and Yuzhong Zhang and Bohan Lyu and Qu Ao and Han Zheng and Chonghe Jiang and Jingzhuo Hu and Xiaokun Chen and Kunjun Li and Zhiqing Zhong and Haoye Tian and Tong Zhao and Yunzhong He and Hanchen Li and Ofir Press and Jiantao Jiao and Kunle Olukotun and Karthik R. Narasimhan and Jingbo Shang and Koushik Sen and Matei Zaharia and Alex Dimakis and Ion Stoica and Joseph E. Gonzalez and Alvin Cheung}, year={2026}, eprint={2610.29932}, archivePrefix={arXiv}, primaryClass={cs.LG}, url={https://arxiv.org/abs/2610.29932}, }

9 hours ago • 1 votes
Worlds

Multi-agent simulations

20 hours ago • 1 votes
Generative AI’s “Total Addressable Profitable Market” remains low

Tech stocks may be back up (to some degree), but profits aren’t

21 hours ago • 1 votes
📚 BoredReading

You seem to be enjoying this.

Join free to unlock everything.

Create free account

Already have an account? Sign in