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

Stay updated

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

More from Strange Loop Canon

Worlds

Multi-agent simulations

3 days ago • 1 votes
The Token Fed

Towards greater financialisation of the token economy

3 weeks ago • 2 votes
Agent governance looks less like moral education and more like institutional economics

how agents turn ruthless on paper first

6th Oct 2026 • 1 votes
The Business of Building God

a look at the changing economics of AI labs

21st Sep 2026 • 1 votes
Nobody Knows Anything

on living with ignorance

16th Aug 2026 • 1 votes

More in AI

Intent Debt and the Future of Work

Why intent debt is the most important operational concept to understand in software engineering

3 hours ago • 1 votes
The GradScaler implosion: how filtered-out NaN gradients became NaN weights

I noticed something odd when I was training some models the other day -- something that went against my understanding of how PyTorch's Automatic Mixed Precision (AMP) training tools worked. In particular, I believed that the GradScaler class filtered out non-finite gradients -- that was based on this comment in the AMP recipe page: # ``scaler.step()`` first unscales the gradients of the optimizer's assigned parameters. # If these gradients do not contain ``inf``s or ``NaN``s, optimizer.step() is then called, # otherwise, optimizer.step() is skipped. However, I was finding that the weights of a model I was training were all being set to NaNs, and while I could see ways that could happen even with finite gradients, none of those appeared to be happening. Understanding your tools properly is an essential part of engineering, so I decided to dig in and find out what was happening -- in particular, what I was misunderstanding about what was going on. This post has the details, but so as not to bury the lede, while the GradScaler does not let non-finite gradients through, that's more a side-effect of its real purpose -- and if it gets into a sufficiently degenerate state, it will actually filter non-finite gradients, but respond to good, finite ones by trashing your weights! The good news is that it's only likely to do this if your model is in such a messed up state that your training run is probably doomed anyway. I don't think it can reasonably be called a bug, as a well-designed training run should have errored out before it kicks in. Here's how it works. The problem I was training a weight-tied model as part of my yak-shaving trajectory towards exploring the logit lens. Weight-tied models are fiddly to train -- you need to get your hyperparameters and the like just right, or they head off into infinite loss territory. But I'd spotted that the weights -- not just the loss -- in the last checkpoint for one of my failed training runs were all NaNs. Now, I was using AMP, which -- as I said -- I believed would be filtering out non-finite gradients, so I was initially quite surprised by that. I was sometimes getting NaN for my loss, which would have led to NaN gradients, but those would have never been applied to the weights; only the finite gradients would. How could finite updates to finite weights make them non-finite? Only one possibility came to mind: a non-finite value can wind up in a float because it overflowed. So you can imagine (slightly handwavily) that the training run might wind up in a regime where it kept bumping weights up using finite gradients, step after step, and eventually they would all overflow. As a mechanism, it seemed plausible, so I decided to see if it was happening. I added a new optional training parameter, log_model_norms, and if it was set, in rank zero just after the code to step the optimiser and the learning rate scheduler, we'd log the current model norms to a JSONL file: if log_model_norms and rank == 0: with torch.no_grad(): norms = {name: p.norm().item() for name, p in model.named_parameters()} with open(run_dir / "model-norms.jsonl", "a") as f: json.dump( {"global_step": global_step, "norms": norms}, f ) f.write("\n") So: we'd log the L2 norm for each named parameter in the model. A named parameter in this sense is a parameter tensor: an unbiased linear layer would have just one, the weights matrix, while a biased one would have two, one for the weights and one for the biases. The L2 norm of a set of numbers is the square root of the sum of their squares, so it is a good proxy for the size of the numbers that make up each tensor. With that, I kicked off another training run, ran it until it diverged, then asked Claude for some charting code to plot the norms over time for everything, treating their initial values as 100 so that they all worked in the same chart. Here's what happened: So that was entirely different to what I'd expected! All of the norms grew steadily but appeared to be settling down, but then it looked like they all blipped up to NaN on the same step. I checked the raw numbers to be sure -- and indeed, prior to step 17,186, the norms were finite, and then they all switched over to NaN in one go. How could that happen if non-finite gradients were being filtered out by the GradScaler? The answer lies in what the scaler is actually doing under the hood. How the GradScaler works Up until this point I'd been treating the GradScaler pretty much as a black box. By following the recipe, I knew that in order to use AMP, you would change a training step like this: logits = model(inputs) loss = torch.nn.functional.cross_entropy( logits.flatten(0, 1), targets.flatten() ) loss.backward() optimizer.step() ...to this: scaler = torch.amp.GradScaler() # ...into the training loop with torch.amp.autocast(device_type=device.type, dtype=torch.float16): logits = model(inputs) loss = torch.nn.functional.cross_entropy( logits.flatten(0, 1), targets.flatten() ) scaler.scale(loss).backward() scaler.step(optimizer) scaler.update() The torch.amp.autocast context manager would do calculations in 16-bit floating point in cases where that would be relatively harmless, and in 32-bit if needed -- and the scaler would... do something to make that work smoothly. I'd not really dug into what. That felt like a gap! Unfortunately the PyTorch docs are very light on what happens. There's the recipe I linked to above, which just says how to use it, and the API docs for the GradScaler itself, which just define the signature of the constructors for two deprecated versions of it, both of which look like this: class torch.cuda.amp.GradScaler(init_scale=65536.0, growth_factor=2.0, backoff_factor=0.5, growth_interval=2000, enabled=True) See torch.amp.GradScaler. torch.cuda.amp.GradScaler(args...) is deprecated. Please use torch.amp.GradScaler("cuda", args...) instead. The text torch.amp.GradScaler is not a link, and as far as I've been able to discover with copious searching, there is no docs page to see for it. So I had to look elsewhere, and I found two pages on ApX Machine Learning that were invaluable: Challenges with FP16 Training (Range Issues) Loss Scaling Techniques After reading through those, I had the idea of asking an agent to dig around for the PyTorch docs for the torch.amp.GradScaler. It also could not find them, but had the bright idea of checking the source -- and there we have a nice docstring that explains things for us; I guess something went wrong in whatever pipeline they use to generate the docs. Let's try to summarise how it works, anyway. What is gradient scaling and why do we do it? What we're trying to do is train a model with 32-bit floating point (FP32) weights, but do some of our calculations in 16-bit FP16 so that we get better performance. AMP does the FP16 calculations selectively, based on how important precision is for a particular operation, but for the purposes of this explanation, I'll just write as if all of the forward and backward pass happens in FP16. The underlying issue is that FP16 has a smaller range than FP32. The Wikipedia page has lots of interesting details, but the relevant ones for our purposes are that FP16 can only handle numbers in the range from -65,504 to +65,504, and that there are similar issues in how small a number they can represent. Asking NumPy for the differences: >>> import numpy as np >>> info = np.finfo(np.float16) >>> print(info.max) 6.55e+04 >>> print(info.min) -6.55e+04 >>> print(info.smallest_normal) 6.104e-05 >>> print(info.smallest_subnormal) 6e-08 (The smallest "normal" number is the smallest one the format can support without losing precision -- if we trade off precision for scaling down, then we get into "subnormal" numbers.) Let's compare that to FP32: >>> info = np.finfo(np.float32) >>> print(info.max) 3.4028235e+38 >>> print(info.min) -3.4028235e+38 >>> print(info.smallest_normal) 1.1754944e-38 >>> print(info.smallest_subnormal) 1e-45 It has a much bigger range, and that mismatch can cause problems! In FP16, small values that would be representable in FP32 can underflow to zero, and likewise large ones can overflow to infinity. Now, for the forward pass, we're kind of on our own -- if we get an overflow, we'll get infinity in our results and therefore non-finite values in our loss, and likewise underflows will just get rounded to zeros. But in deep networks, very small or very large gradients are not uncommon even for "sane" loss values -- the classic problems of vanishing or exploding gradients. And the scaler can help with the backward pass that takes us from the loss to the gradients. Let's say that normally we would have a loss of ℒ, so we would work out our gradient for a weight w like this: g=∂ℒ∂w If there are numbers within the backward pass that works out the gradient that are represented in FP16, they might overflow or underflow. Let's imagine that in a particular case, the gradients are small enough to underflow. Now imagine that instead, we multiplied the loss by some scaling factor S before doing the partial derivative: g′=∂∂w(S·ℒ) We'll imagine that S is large enough it bumps up the numbers in the backward pass enough so that there's now no underflow. So we have a gradient -- great! -- but it's the wrong one, g′ rather than g. However, because S is just a constant scaling factor and is not expressed in terms of the w on the bottom of the partial derivative, we can pull it out and rewrite that equation above as: g′=S·∂ℒ∂w ...which means that we can just substitute in from the first equation: g′=S·g ⟹g=g′/S Or, to put it less mathematically -- if we scale up the loss by multiplying by S, then work out our gradients, and then divide them by S, we get the same results as we would without scaling. But, with the right value for S, we dodge the risk of underflowing during our backward pass. Clearly, with S<1, the same applies -- we'll scale the loss down and the resulting gradients up, so we can use that to try to avoid overflows. This is exactly what the GradScaler does. You do your forward pass, and then call scaler.scale(loss).backward() ...to scale it by a scaling factor S and then do the backward pass. It starts off with S set to some particular value -- that init_scale=65536.0 in the docs above. After the backward pass has worked out the gradients, you call the scaler's step function: scaler.step(optimizer) It checks for any NaN/infinite gradients, and: If it finds any, it makes a note of that and skips the optimiser step (because the gradients it has are worthless). If it doesn't, then it notes that, then scales the gradients down by dividing by S, and lets the optimiser do its thing. Then you call update: scaler.update() That checks the notes from the call to step: if there were any NaN/infinite values, then it assumes that the scaling factor is too large, and reduces it by multiplying it by a constant -- that backoff_factor=0.5 in the docs. Let's imagine that S starts too high; in each step we get an overflow, so it will halve. This happens every time until it reaches an acceptable value. Additionally, if the correct value of S changes over the course of the training run so that it needs to be reduced, the same backoff will happen over one or more steps. Now, you've probably noticed that while this handles overflows, it doesn't do anything with underflows. That's because those are "invisible" to the scaler. An overflow will manifest as a NaN/infinity in a gradient, which is obviously a sign of a problem that the scaler can check for. But an underflow will just mean that something that should be small but non-zero is zero instead -- and zero is a perfectly fine value for a gradient. Underflows are handled by the growth_factor=2.0 and the growth_interval=2000 in the docs. Let's say that the scaler has been running for growth_interval steps with no reductions in the scale. That may be a sign that it's doing its job, and the scale is calibrated correctly -- but it might be a sign that your training run is getting underflows and doing nothing. So after growth_interval successful steps, update will multiply the scaling factor by growth_factor so that the next step will try a higher one. That might cause an overflow in the next step, of course -- but that would be immediately corrected by a reduction in the scale, which would (hopefully) get things back into the right range. So the net effect is that every growth_interval good steps it will try making the scale a bit higher, so it will rise gradually until it hits the maximum level it can be at without causing overflows, then sit there, blipping up to an unsustainable number every growth_interval steps. That's unbalanced, of course -- if we overflow, we rescale immediately, but if we're underflowing, we rescale after a bunch of steps. But given that only overflows are visible to the scaler, it's a reasonable balance. After all, if we rescaled upwards every time there were no non-finite values (that is, set growth_interval to 1) then if we got to the right value, we'd be bouncing up to a higher one every other step, and skipping half of them due to overflows. Now, that does mean that if the scale factor is set too low at the start, then you'll wind up with a bunch of wasted steps -- I think that is why the default starting value is surprisingly high, at 65536.0 -- better to start with too high a value so that it will halve each step until it's within range, than to start with too low a value and only scale it up after 2,000 steps, and again after 2,000 more, and so on. So, that's how the GradScaler works. It does, as I thought, skip non-finite gradients -- but it's more as a side effect of its dynamic adjustment of the scaling factor than it is an explicit feature. And that, finally, answers a question I had way back in February when I was looking into gradient clipping -- why is the feature to skip non-finite gradients implemented as part of a tool designed for handling mixed-precision training? It's not there as a deliberate choice -- it's just there as a result of how that tool detects overflows. Now that we know how it works, let's think about how it can fail. The GradScaler failure mode Let's revisit the simplified AMP training loop: with torch.amp.autocast(device_type=device.type, dtype=torch.float16): logits = model(inputs) loss = torch.nn.functional.cross_entropy( logits.flatten(0, 1), targets.flatten() ) scaler.scale(loss).backward() scaler.step(optimizer) scaler.update() We know that the call to scaler.scale has multiplied our loss by S, then we did the (hopefully non-overflowing) backward pass, and then we call the scaler's step and update. If there are any non-finite gradients, step will skip the step, and update will reduce S to try to bring it within range. If there are no non-finite gradients, step will divide what it has by S, and then use the optimiser to apply them, and update will update a counter of "good" steps so it can try bumping scale up after growth_interval of them -- or will bump it up if it has reached that target. What would happen if S was zero? If there are any non-finite gradients, it will skip the step etc. If there are no non-finite gradients, it will divide them by S, and... oh dear. If S becomes zero, but we have finite gradients, then when we divide the gradients by S, we get NaNs. And the NaN check has already happened, before the division -- so the scaler will ask the optimiser to apply NaN updates to the weights. Obviously, you wouldn't set the scale to zero directly. But it can become zero with a long-enough series of dynamic backoffs. Imagine, for example, that you got repeated NaN losses on the forward pass, or the gradients repeatedly exploded to NaNs or infinity on the backward. The scale is stored as a 32-bit float, so for the sake of argument, let's assume that for a particular step, it's set to 4096.0 (that specific number will become relevant later). If you get a series of non-finite gradients, then each time it will halve -- and eventually it will underflow and reach zero: >>> import torch >>> scale = torch.tensor(4096.0, dtype=torch.float32) >>> for ii in range(10_000): ... scale = scale * 0.5 ... if scale == 0: ... print(f"Zero after {ii + 1} steps") ... break ... Zero after 162 steps And it actually gets a bit worse. If we look at the code, it (as of this writing) scales the gradients down by S using a reciprocal, like this: inv_scale = ( self._scale.double().reciprocal().float() if self._scale.device != torch.device("mps:0") else self._scale.reciprocal() ) found_inf = torch.full((), 0.0, dtype=torch.float32, device=self._scale.device) optimizer_state["found_inf_per_device"] = self._unscale_grads_( optimizer, inv_scale, found_inf, False ) self._scale is our S, and (if we're not on Apple's GPU backend, which is the mps bit), it works out inv_scale by converting to FP64, taking its reciprocal, and then converting back to FP32 -- then it multiplies gradients by that reciprocal downstream in self._unscale_grads_. How small does self._scale need to be before that becomes infinite? >>> scale = torch.tensor(4096.0, dtype=torch.float32) >>> for ii in range(10_000): ... scale = scale * 0.5 ... if scale.double().reciprocal().float() == torch.inf: ... print(f"Hit an inf after {ii + 1} iterations at {scale}") ... break ... Hit an inf after 140 iterations at 2.938735877055719e-39 So, if we start with a scale of 4096.0, a long string of steps where there are NaNs in the gradients can cause the scaler to adjust its scale to zero after 162 bad steps, or even just to a number that is so small that it's essentially zero -- in terms of what happens when you try to use it -- after 140 steps. But wait, it gets worse again! You don't even need those NaN steps to be consecutive. Remember, the scaler only adjusts the scale upwards after growth_interval steps of non-NaN updates. The default interval is 2,000, so if you get, say, 140 steps with NaNs in the loss after starting with 4096.0, so long as there are fewer than 2,000 steps with non-NaN loss between each of them, you're in this death spiral. The scaler will keep reducing its scale factor, and you'll wind up with garbage weights. This would happen even with one NaN, then up to 1,999 OK steps, then another NaN, then up to another 1,999 OK steps, and so on. So it's more plausible than you might think! So now let's take a look at what was happening in my training run -- the one that started all of this investigation. Diagnosing this run Let's take a look at those weight norms again: I really like Matplotlib's XKCD mode; the slightly wobbly hand-drawn lines reflect the uncertainty of measured values quite nicely. But this is a case where that's fighting against us. Let's look at how it would look if plotted normally (I'll stick to these more boring plots for the rest of this post): There's something very clear there: you can see a tiny blip shortly after step 15,000, and then everything is completely flat. The norms don't change until they explode to NaNs at step 17,186. Looking at the raw data, I found that the point where the norms "locked" was just after step 15,368 -- for every step thereafter, they were identical, until the explosion. So, that means that the norms were locked for the 1,817 steps from 15,369 to 17,185 inclusive. What was going on then? I added code to log the losses (I was doing gradient accumulation over 16 microbatches, so each step had 16 losses) and the scaler's scaling factor: if detailed_training_logging and rank == 0: with torch.no_grad(): norms = {name: p.norm().item() for name, p in model.named_parameters()} with open(run_dir / "detailed-log.jsonl", "a") as f: data = { "global_step": global_step, "norms": norms, "losses": train_losses[-gradient_accumulation_steps:], } if scaler is not None: data["scaler_scale"] = scaler.get_scale() json.dump(data, f) f.write("\n") ...and kicked off the run again. When it was done, I asked Claude for some updated charting code to see what the results looked like. The scaling factor first: You can see that it bimbled around a bit (technical term) up until somewhere after step 15,000, then dropped off a cliff. Zooming in: To be precise: the scale dropped to a level where dividing by it (specifically in the code, that reciprocal) would result in infinity at step 15,509, and then fell to zero by step 15,531. And very neatly: 15,509 is exactly 140 steps from when the NaNs started coming in consistently and norms stopped changing at step 15,369. 15,531 is exactly 162 steps from the same point. Those match up with the tests above -- when we started with 4096.0, then halved it each time until the reciprocals started failing, and until it reached zero. The reason for that starting point of 4096.0 was (as I assume you've guessed) that's what the scaler's scale happened to be for the step where the norms stopped changing. That would suggest that every step from step 15,369 until 15,531, we got NaNs somewhere in the backward pass. Now, a NaN can potentially appear in the gradients even if the loss was finite, due to an exploding gradient overflowing. But the opposite does not hold: a NaN loss will always cause NaN gradients. So what did our losses look like? My logging code was including them, so we can see a chart. Because each step had 16 losses, one for each microbatch in the step, the chart shows the average of the finite losses, and then has a red flag at the top if there are one or more non-finite losses. ...and zooming in to the area in question again: You can (hopefully) see that from step 15,369 onwards, every step had at least one NaN. There were a couple of NaNs shortly prior to that (they're specifically at steps 15,352 and 15,360), and it recovered for a few steps, but then blew up completely. Additionally, the average finite losses had been declining reasonably smoothly over the run, but that first NaN at step 15,352 seemed to kick it into an upward trend, and then they got stuck at somewhere around 9 -- unsurprisingly not changing much, given that the model's weights were not changing, and we were just seeing the results of changing training data. The scaler was blocking all updates due to non-finite gradients. Digging into the logs, the losses told the same story -- for every step after 15,368, there was at least one NaN in the losses. The model was broken, our losses were frequently NaNs, and the scaler wasn't allowing any updates through. Additionally, looking at step 15,352 -- that first NaN loss above -- the scaler's scale was 524,288.0 there. Although the only NaN losses before the complete collapse at 15,369 were at steps 15,352 and 15,360, the scale also halved on steps 15,354, 15,356, 15,359, 15,361, and 15,364. That implies that even with the finite losses, we were pretty frequently getting non-finite gradients over that period -- like I said, NaN can potentially appear in the gradients even if the loss was finite, due to an exploding gradient overflowing. So what happened at step 17,186 that triggered the update where all of the weights got trashed? That's where the NaN issue temporarily stopped. Let's look at its raw losses from the logs: [8.589940071105957, 10.134101867675781, 7.456259250640869, 8.580881118774414, 8.039091110229492, 9.646912574768066, 8.769637107849121, 6.42511510848999, 9.974699974060059, 9.117472648620605, 9.377853393554688, 9.64299201965332, 9.239002227783203, 6.830324649810791, 10.035568237304688, 10.625506401062012] They're all finite! And so now, we have our explanation: Training was working reasonably well until step 15,352, where the weights got into a state where sometimes the loss was a NaN. Updates from those broken forward passes (and some others with OK forward passes but broken backward ones) made the scaler start reducing its scaling factor and stopping the weights from changing, but other updates with finite losses were getting through. Loss started rising -- we had started "climbing out" of a basin in the loss landscape. By step 15,369, things had become broken enough that every step contained at least one NaN, so the scaler halved its scaling factor every step and no updates got through. By step 15,509, the scaler's scale had fallen to a level so low, that when the scaler did its reciprocal, we'd get an infinite result -- the scale wasn't zero, but was indistinguishable from it in terms of division. But updates were still not coming through because every step had at least one microbatch with a NaN loss, which led to NaN gradients, so the scaler was blocking them. By step 15,531, the scale had underflowed to exactly zero; still every step had at least one NaN loss, so the weights remained unchanged. Finally, at step 17,186, by chance a step happened to have no NaNs in its losses. The scaler did its job: it multiplied them by the scale, which was zero, did the backward pass, multiplied the resulting gradients by the reciprocal of zero and got NaNs, then used those to update the weights. And with that we were done. Guaranteed-finite gradients had overwritten all of our weights with NaNs due to a divide-by-zero in the scaler. But, bluntly, does it really matter? While researching this problem, I came across this comment from ptrblck on the PyTorch forums, writing to someone who'd seen a similar issue: If your model outputs NaN values, the training is generally broken and I don’t know if the model can somehow recover from it. [...] That's a really good point. Understanding this was an interesting puzzle -- and, at least for me, has been a good way of getting to understand the reasoning behind and the implementation of the GradScaler. But the issue with finite gradients trashing the model's weights with NaNs is a downstream symptom of the real problem -- that the model had started diverging and returning results that got NaN losses. Even in the worst-possible case I outlined above, where NaNs appear with as many as growth_interval - 1 good steps between them, I think you can make a solid case that something in the model is broken and that is what needs fixing. The model I was working with when I hit this problem was one using weight tying, which I've found is very finicky about the hyperparameters and general training setup, and this specific training run used what I think is too low a value for the weight decay. And that's the underlying problem to fix. But at least I now understand why it's failing in the specific counterintuitive way that it is. And that, I think, is worth a lot.

3 hours ago • 1 votes
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 days 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

2 days 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}, }

2 days ago • 1 votes
📚 BoredReading

You seem to be enjoying this.

Join free to unlock everything.

Create free account

Already have an account? Sign in