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
108

Vision Transformers are Overrated

from Frank’s Ramblings [alt+shift+b] in AI

Vision transformers (ViTs) have seen an incredible rise in the past four years. They have an obvious upside: in a visual recognition setting, the receptive field of a pure ViT is effectively the entire image 1. In particular, vanilla ViTs maintain the quadratic time complexity (w.r.t. number of input patches) of language models with dense attention. Kernels in convolutional networks, on the other hand, have the property of being invariant to the input pixel/voxel that it is applied to, a feature that is typically referred to as translation equivariance. This is desirable because it allows the model to effectively recognize patterns and objects regardless of where they are located spatially. The weight sharing present in convolutional layers also makes convnets highly parameter-efficient and less prone to overfitting - a property ViTs do not have. As such, you might expect that ViTs and convnets are used equally in production environments that leverage visual models - ViTs for “global” tasks such as scene recognition and convnets for more “local” tasks such as object recognition. Even so, we’ve been inundated with work that utilizes ViTs, with bold high-level claims (mostly by media outlets) that convnets are a thing of the past. Curious to see if I could lend a hand in helping debunk this claim, I set out to figure whether or not a mostly vanilla ResNet could match or even exceed the performance of both ViT and ConvNeXt. The comparison to ConvNeXt is of particular interest, since it is a fully convolutional network that attempts to bridge the gap between transformers and convnets. With a bit of experimentation on Imagenet-1k, we can reach 82.0% accuracy with a 176x176 training image size with no extra data, matching ConvNeXt-T (v1, without pre-training a-la MAE) and surpassing ViT-S (specifically, the ViT flavor from DeiT-III). Training methodology We start by adopting the training methodology set in Pytorch’s late 2021 blog, where they achieved an impressive 80.8%...
29th Dec 2023

Stay updated

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

More from Frank’s Ramblings

a16z Blogs Are Just Glorified Marketing

… glorified marketing for portfolio companies, that is I came across one of a16z’s blog posts on Hacker News today, titled Emerging Architectures for LLM Applications. For folks who didn’t catch it, here’s the tl;dr: The emerging LLM stack is composed of several elements centered around data orchestration tools such as Langchain and Llamaindex. Data pipelines, embedding models, vector databases, and queries form the primary input for these orchestration tools. The stack is based on in-context learning, where off-the-shelf LLMs are used and their behavior is controlled through prompting and conditioning on contextual data. Strategies for prompting LLMs are becoming increasingly complex and are a core differentiating factor for both closed-source and open-source LLMs. Of these LLMs, strategies for GPT-3.5 and GPT-4 are most common, seeing as OpenAI is the current leader. AI agents - programmatic runtimes that can reason and plan - excite both developers and researchers alike, but don’t work just yet. Most agent frameworks are currently in PoC phase. Overall, I thought the article was informative, but I was surprised that the section on vector databases mentions neither Milvus nor Zilliz, especially since Milvus was mentioned in an older a16z blog on data and ML infrastructure: Also of note: another Zilliz project (GPTCache) is listed in the post. My initial instinct was that Milvus was left off because it is part of the LF AI & Data Foundation rather being a project wholly owned by Zilliz, so I left a comment on the HN post that links back to the Milvus website. I came back a couple of hours later to find an interesting take: Full disclosure: we (Zilliz) raised $103M back in 2022, and Pinecone raised $100M this April. Running it back in my head, I felt that SheepHerdr’s response actually made excellent sense - a16z’s ultimate goal is to generate returns for LPs, and the best way to do that is by supporting founders and propping their portfolio companies. To me, this is also unequivocally unfair to Vespa, Weaviate, etc as it delivers a subliminal message that they have no realistic long-term chance in the vector database space relative to Pinecone. This, of course, is absolute nonsense: vector databases are NOT a zero-sum game. I dove a bit deeper and was surprised to find that this is fairly commonplace behavior for a16z as a firm: The aforementioned article also lists Databricks in the “Data Pipelines” section, but not Snowflake. There is a Snowflake loader for Langchain and a guide for using Llamaindex with Snowflake. Databricks is an a16z portfolio company. The Modern Transactional Stack doesn’t come close to listing all of the available data connectors. To be fair, Airbyte and Fivetran (an a16z portfolio company) are the two largest and most well-known, but to distill the entire segment to just two companies seems unfair. a16z’s crypto division has backed LayerZero, going as far as actively voting against Wormhole, a LayerZero competitor. Side note: LayerZero was also featured in a16z’s Crypto Startup School. These are just three random examples I dug out - there are probably many other examples in verticals that I am unfamiliar with. Other LLM/GenAI Infrastructure landscapes Here’s a couple alternative landscapes that are, in my eyes, more wholly representative: ML/AI/Data Landscape (Interactive version). Matt Turck’s MAD Landscape is arguably the most complete out there. Companies that do vector search are listed under “Infrastructure/Vector Database” and “Analytics/Enterprise Search” categories. It was released in February 2023 so it’s about 4 months old, but a good resource nonetheless. Future of AI-Native Infrastructure. This one’s from Wei Lien Dang and David Hershey of Unusual Ventures. I found this pretty unique as it has a vertical for AI agents. It’s unfortunately not as complete as the MAD Landscape (missing Vespa, Vectara, etc), but still a good overview. The New Language Model Stack. Sequoia Capital’s blog post on the LLM stack is also excellent. Milvus isn’t in the diagram, but it’s mentioned in the section on vector databases. Vector Database Landscape. Yingjun Wu’s infographic is centered specifically around vector search infrastructure. Final thoughts I have tremendous respect for a16z, a firm that helped pioneer the practice of working with and nurturing founders rather than forcing them out pre-IPO or minmaxing term sheets. Their content is also incredibly informative and valuable for understanding the nuances of building a company, from finding PMF to hiring executives. I also wholeheartedly understand a16z’s motivation for sharing knowledge and highlighting their portfolio companies, but to do so under the guise of being helpful and impartial is just plain silly. In particular, a16z’s blog post yesterday has as much to do with emerging strategies for portfolio company marketing as it does with emerging architectures for LLM applications. This practice would be somewhat analagous to Google putting paid URLs at the very top of search results without an “Ad” label. (To be clear, Google doesn’t do this.) I’d like to end with some glorified marketing of my own: % pip install milvus

20th Jun 2023 • 67 votes
Hierarchical Navigable Small Worlds (HNSW)

(Note: A version of this post has been cross-published to the Zilliz blog) In a previous blog, we took a look at scalar quantization and product quantization - two indexing strategies which are used to reduce the overall size of the database without reducing the scope of a search. To better illustrate how scalar quantization and product quantization works, we also implemented our own versions in Python. In this tutorial, we’ll build on top of that knowledge by looking at what is perhaps the most commonly used primary algorithm today: Hierarchical Navigable Small Worlds (HNSW). HNSW performs very well when it comes to both speed and accuracy, making it an incredibly robust vector search algorithm. Despite it being popular, understanding HNSW can be a bit tricky. In the next couple of sections, we’ll break down HNSW into its individual steps, developing our own simple implementation along the way. HNSW basics Recall from a previous post that there are four different types of vector search indexes: hash-based, tree-based, cluster-based, and graph-based. HNSW fits firmly into the lattermost, combining two core concepts together - the skip list and Navigable Small World (NSW). Let’s first dive into these two concepts individually before discussing HNSW. Skip list overview First up: skip lists. Recall the venerable linked list - a well-known data structure where each element in the list maintains a pointer the the next element. Although linked lists work great for implementing LIFO and FIFO data structures such as stacks and queues, a major downside is their time complexity when it comes to random access: O(n). Skip lists aim to solve this problem by introducing additional layers, allowing for O(log n) random access time complexity. By incurring extra memory (O(n log n) space complexity as opposed to O(n) for a normal linked list) and a bit of runtime overhead for inserts and deletes. A skip list is essentially a multi-level linked list, where the upper levels maintain long connections. As we move down the layers, the connections become shorter and shorter, with the bottommost layer being the “original” linked list containing all of the elements. The image below illustrates this: The skip list, illustrated. Higher layers have fewer elements. To reach element i in a skip list, we first start at the highest layer. Once we find a node that corresponds to an element in the list that is greater than i, we then backtrack to the previous node and move to the layer below. This continues all the way until we’ve found the element we’re looking for. Note that skip lists only work for sorted lists, as we need a way to directly compare the magnitude of two objects. Inserts work probabilistically. For any new element, we first need to figure out the layer with which the element appears first. The uppermost layer has the lowest probability, with increasing probability as we move down in layers. The general rule is that any element in a layer will appear in layer above it with some pre-defined probability p. Therefore, if an element first appears in some layer l, it will also get added to layers l-1, l-2, and so on. Note that, while it is possible to have a terribly balanced skip list that performs no better than a standard linked list, the probability of this happening is incredibly low. What the heck is a Navigable Small World? Now that we’ve gotten skip lists out of the way, let’s take some time to talk about Navigable Small Worlds. The general idea here is to first imagine a large number of nodes in a network. Each node will will have short-, medium-, and long-range connections to other nodes. When performing a search, we’ll first begin at some pre-defined entry point. From there, we’ll evaluate connections to other nodes, and jump to the one closest to the one we hope to find. This process repeats until we’ve found our nearest neighbor. This type of search is called greedy search. For small NSWs in the hundreds or thousands of nodes, this algorithm works, but it tends to break down for much larger NSWs. We can fix this by increasing the average number of short-, medium-, and long-range connections for each node, but this increases the overall complexity of the network and results in longer search times. In the absolute “worst” case, where each node is connected to every other node in our dataset, NSW is no better than naïve (linear) search. NSWs are cool and all, but how does this relate to vector search? The idea here is to imagine all vectors in our dataset as points in an NSW, with long-range connections being defined by vectors which are dissimilar from one another and the opposite for short-range connections. Recall that vector similarity scores are measured with a similarity metric - typically L2 distance or inner product for floating point vectors and Jaccard or Hamming distance for binary vectors. By constructing an NSW with dataset vectors as vertices, we can effectively perform nearest neighbor search by simply greedily traversing the NSW towards vertices closer and closer to our query vector. HNSW, explained When it comes to vector search, we often have dataset sizes in the hundreds of millions or even billions of vectors. Plain NSWs are less effective at this scale, so we’ll need a better graph. HNSW extends NSW by borrowing from the concept of skip lists. Like the skip list, HNSW maintains multiple layers (hence the term Hierarchical Navigable Small World), only of NSWs instead of linked lists. The uppermost layer of an HNSW graph has few nodes and the longest links, while the bottommost layer has all nodes and the shortest links. During the search process, we enter a pre-defined point in the uppermost layer and greedily route ourselves towards the nearest neighbor to our query vector. Once we reach the nearest node, we then move to the second layer and repeat this process. This continues until we’ve reached our nearest neighbor. A diagram from the HNSW paper which visualizes the layered graph concept. Inserts work similarly to the skip list. For some vector v, We first traverse the first layer of the graph, finding its nearest neighbor before moving to the layer below it. We then traverse the graph again to find its nearest neighbor in the second layer. This process until we’ve reached the nearest neighbor in the bottommost graph. From here, we then need to determine which links (connections between vertices) to create. Again, we have a pre-defined parameter M which determines the maximum number of bidirectional links that we can add. These links are usually simply set as the nearest neighbors to v, but other heuristics can be used as well. The same process then repeats for the upper layers, assuming the vector appears there. As with the skip list, the query vector will appear in upper layers with exponentially decreasing probability. Specifically, the HNSW paper uses the equation floor(-ln(rand(0, 1))), where rand(0, 1) is a random number sampled from a uniform distribution between (0, 1]. Note how this does not actually constrain the minimum distance between any two vertices/vectors in a particular layer - it’s entirely possible that we end up with a poorly constructed graph, but the probability that this happens is incredibly low, especially as we scale up the number of vectors in the HNSW index. Implementing HNSW HNSW is not trivial to implement, so we’ll implement only a very basic version here. As usual, let’s start with creating a dataset of (128 dimensional) vectors: >>> import numpy as np >>> dataset = np.random.normal(size=(1000, 128)) The first step is to build the HNSW index. To do so, we’ll need to add each vector in our dataset one-by-one. Let’s first create a data structure to hold our index. In this basic example, we’ll use a list of lists to represent the index, with the inner lists corresponding to each layer/graph: >>> L = 5 # 5-layer HNSW >>> index = [[] for _ in range(L)] Every element in each graph is a 3-tuple containing the vector, a list of indexes that the vector links to within the graph, and the index for the corresponding node in the layer below it. For the bottommost layer, the third element of the 3-tuple will be set to None. Since every insert first requires a search for the nearest neighbor in graph, let’s implement that first. We can traverse any of the subgraphs in the index as so: def _search_layer(graph, entry, query, ef=1): best = (np.linalg.norm(graph[entry][0] - query), entry) nns = [best] visit = set(best) # set of visited nodes candid = [best] # candidate nodes to insert into nearest neighbors heapify(candid) # find top-k nearest neighbors while candid: cv = heappop(candid) if nns[-1][0] > cv[0]: break # loop through all nearest neighbors to the candidate vector for e in graph[cv[1]][1]: d = np.linalg.norm(graph[e][0] - query) if (d, e) not in visit: visit.add((d, e)) # push only "better" vectors into candidate heap if d < nns[-1][0] or len(nns) < ef: heappush(candid, (d, e)) insort(nns, (d, e)) if len(nns) > ef: nns.pop() return nns This code snippet is a bit more involved, but it’s much easier to understand with a bit of explanation. Here, we use a heap to implement a priority queue, which we use to order nearest neighbor vectors in the graph. Like all of the previous examples, I’m using L2 distance here, but this code can be extended to other distance metrics as well. We first populate the heap with the entry point. Here, all we’re doing is implementing greedy search. At every iteration, our goal is to update two variables: nns, our output list of nearest neighbors, and candid, a heap of candidate points. We evaluate all nearest neighbors to the “best” vector in candid, adding better (better means closer to the query vector) vectors to the output list of nearest neighbors as well as to the heap of candidate points for evaluation on the next iteration. This repeats until one of two stopping conditions is reached: we either run out of candidate points to evaluate, or we’ve determined that we can no longer do any better than what we already have. With top-k graph search out of the way, we can now now implement the top-level search function for searching the entire HNSW index: def search(index, query, ef=1): # if the index is empty, return an empty list if not index[0]: return [] best_v = 0 # set the initial best vertex to the entry point for graph in index: best_d, best_v = _search_layer(graph, best_v, query, ef=1)[0] if graph[best_v][2]: best_v = graph[best_v][2] else: return _search_layer(graph, best_v, query, ef=ef) We first start at the entry point (zeroth element in the uppermost graph), and search for the nearest neighbor in each layer of the index until we reach the bottommost layer. Recall that the final element of the 3-tuple will resolve to None if we are at the bottommost layer - this is what the final if statement is for. Once we reach the bottommost layer, we search the graph using best_v as the entry point. Let’s go back go the HNSW insert. We’ll first need to figure out which layer to insert our new vector into. This is fairly straightforward: def _get_insert_layer(L, mL): # ml is a multiplicative factor used to normalized the distribution l = -int(np.log(np.random.random()) * mL) return min(l, L) With everything in place, we can now implement the insertion function. def insert(self, vec, efc=10): # if the index is empty, insert the vector into all layers and return if not index[0]: i = None for graph in index[::-1]: graph.append((vec, [], i)) i = 0 return l = _get_insert_layer(1/np.log(L)) start_v = 0 for n, graph in enumerate(index): # perform insertion for layers [l, L) only if n < l: _, start_v = _search_layer(graph, start_v, vec, ef=1)[0] else: node = (vec, [], len(_index[n+1]) if n < L-1 else None) nns = _search_layer(graph, start_v, vec, ef=efc) for nn in nns: node[1].append(nn[1]) # outbound connections to NNs graph[nn[1]][1].append(len(graph)) # inbound connections to node graph.append(node) # set the starting vertex to the nearest neighbor in the next layer start_v = graph[start_v][2] If the index is empty, we’ll insert vec into all layers and return immediately. This serves to initialize the index and allow for successful insertions later. If the index has already been populated, we begin insertion by first computing the insertion layer via the get_insert_layer function we implemented in the previous step. From there, we find the nearest neighbor to the vector in the uppermost graph. This process continues for the layers below it until we reach layer l, the insertion layer. For layer l and all those below it, we first find the nearest neighbors to vec up to a pre-determined number ef. We then create connections from the node to its nearest neighbors and vice versa. Note that a proper implementation should also have a pruning technique to prevent early vectors from being connected to too many others - I’ll leave that as an exercise for the reader :sunny:. We now have both search (query) and insert functionality complete. Let’s combine everything together in a class: from bisect import insort from heapq import heapify, heappop, heappush import numpy as np from ._base import _BaseIndex class HNSW(_BaseIndex): def __init__(self, L=5, mL=0.62, efc=10): self._L = L self._mL = mL self._efc = efc self._index = [[] for _ in range(L)] @staticmethod def _search_layer(graph, entry, query, ef=1): best = (np.linalg.norm(graph[entry][0] - query), entry) nns = [best] visit = set(best) # set of visited nodes candid = [best] # candidate nodes to insert into nearest neighbors heapify(candid) # find top-k nearest neighbors while candid: cv = heappop(candid) if nns[-1][0] > cv[0]: break # loop through all nearest neighbors to the candidate vector for e in graph[cv[1]][1]: d = np.linalg.norm(graph[e][0] - query) if (d, e) not in visit: visit.add((d, e)) # push only "better" vectors into candidate heap if d < nns[-1][0] or len(nns) < ef: heappush(candid, (d, e)) insort(nns, (d, e)) if len(nns) > ef: nns.pop() return nns def create(self, dataset): for v in dataset: self.insert(v) def search(self, query, ef=1): # if the index is empty, return an empty list if not self._index[0]: return [] best_v = 0 # set the initial best vertex to the entry point for graph in self._index: best_d, best_v = HNSW._search_layer(graph, best_v, query, ef=1)[0] if graph[best_v][2]: best_v = graph[best_v][2] else: return HNSW._search_layer(graph, best_v, query, ef=ef) def _get_insert_layer(self): # ml is a multiplicative factor used to normalize the distribution l = -int(np.log(np.random.random()) * self._mL) return min(l, self._L-1) def insert(self, vec, efc=10): # if the index is empty, insert the vector into all layers and return if not self._index[0]: i = None for graph in self._index[::-1]: graph.append((vec, [], i)) i = 0 return l = self._get_insert_layer() start_v = 0 for n, graph in enumerate(self._index): # perform insertion for layers [l, L) only if n < l: _, start_v = self._search_layer(graph, start_v, vec, ef=1)[0] else: node = (vec, [], len(self._index[n+1]) if n < self._L-1 else None) nns = self._search_layer(graph, start_v, vec, ef=efc) for nn in nns: node[1].append(nn[1]) # outbound connections to NNs graph[nn[1]][1].append(len(graph)) # inbound connections to node graph.append(node) # set the starting vertex to the nearest neighbor in the next layer start_v = graph[start_v][2] Boom, done! All code for this tutorial can be accessed on Github: https://github.com/fzliu/vector-search.

21st Mar 2023 • 65 votes
My Experience Living and Working in China, Part II: COVID Stories

In this four-part article, I’ll go over some of the lessons I learned living and doing business in China’s tech industry. During my time in China, I’ve led a team of 10+ engineers to develop a location-based IoT and sensing platform, co-founded an open-source project called Towhee, and developed countless relationships with folks in a number of difference cities (many of whom I now consider good friends). I’ll go over some of the common misconceptions about China ranging from living and working in China to the government’s pandemic response. I originally intended for part II of this blog post to cover the tech industry in more detail (996, CSDN, open-source, etc…), but given the current spike in COVID cases these past two weeks plus the current lockdown in Shanghai, I felt it was more appropriate to first cover pandemic life in China. As always, if you have any questions, comments, or concerns, feel free to connect with me on Twitter or LinkedIn. Thanks for reading! Before reading this blog post, I strongly recommend you read part I if you haven’t yet. Part I received much more exposure than I had anticipated; I received a lot of positive feedback and I enjoyed reading many of the responses, especially those which provided a different outlook on China and its citizens. While I had originally intended for part II to cover China’s tech industry, I decided to instead cover China’s handling of the pandemic first, given Shanghai’s current lockdown. Stocking up on food right before the Shanghai lockdown in March 2022. I imagine the conversation with supermarket staff went something like this: Q - What kind of ramen would you like? A - All if it. A couple of words before steaming ahead into part II: 1) This article will be focused around three pandemic stories from China which will depict how China’s zero-COVID policy has affected Chinese citizens. These purely anecdotal stories are not meant to directly prove a point or argue a cause; rather, my hope is that they can provide a “boots-on-the-ground” perspective for readers unfamiliar with life in China (and, to a lesser extent, other east Asian countries) during COVID. 2) Recent articles with visualizations which conveniently ignore certain population segments (or other statistical anomalies) have unfortunately reduced my faith in “data-driven” articles1. As such, a small portion of this blog post will be dedicated towards picking apart pure data-driven arguments against China’s COVID statistics. 3) Lastly, I’d like to remind everyone to keep comments civil. I was subject to a private but fairly negative personal attack from one of the readers over the Personal identity section in part I. As the post’s author, I’m fine with it, but do not subject other readers and community members to the same or similar treatment - it’s irresponsible and does nothing to improve the quality of the discussion. With that said, let’s dive in. Three pandemic stories It would be easy for me to simply “tell you” how the pandemic has changed China; instead, I’d like to start this blog post with three “pandemic stories” - short excerpts which highlight the scope with which China’s zero-COVID policy has affected the population. These purely anecdotal stories are not meant to directly prove a point or argue a cause; rather, my hope is that they can provide a “boots-on-the-ground” perspective. Alex’s story Alex (I’ve used an alias to ensure privacy) is a Taiwanese expat working in Shanghai. Her story is a bit unique given her background - she’s been in Shanghai since early 2020 and, due to quarantine policies on both sides of the Taiwan strait, hasn’t been back home in over two years. More on this in a bit. When Alex flew from Taiwan to Shanghai in February of 2020, she immediately found herself in unfamiliar territory. Streets were nearly completely empty, and the few folks who did wander outside were tightly masked. The only businesses open were supermarkets, which were required by central government policy to have workers and/or guards standing by entrances, recording everybody’s name, ID number, phone number, and body temperature. News on Wuhan and the COVID-related restrictions popping up around the country were being constantly broadcast by state-run media. Red propaganda posters filled the streets, warning the general populace to remain masked and to stay away from wild game (野味). As time progressed, it became clear to Alex that, while people living in Western countries had lost jobs and loved ones, people living in China lost significant freedom and social capital in a country already short on both. In a culture that prides itself on family and connectivity - especially during Lunar New Year 2 - not returning home for over two years is borderline criminal. However, for Alex, this was not by choice. The policy for foreign travelers entering Taiwan is 14 days of quarantine, while the policy for travelers entering Shanghai is 14 days of hotel quarantine plus another 7 days at home. Because no human contact is allowed during the entire quarantine period, these quarantine periods are generally referred to as isolation (隔离) in Mandarin. For Alex, spending over a month in quarantine/isolation would simply be unacceptable, especially as the rest of her co-workers are all in-office. Two years away from Taiwan also resulted in a loss of something known as household registration (户籍). Although it may not seem like a big deal, household registration is more significantly meaningful in Taiwan than residency in the USA or Canada - everything from local health insurance to voting rights are impacted by the loss or acquisition of household residency. While she’s still in Shanghai today, she remains hopeful for the opportunity to return home to Taiwan later this year. Although the strict COVID policies have soured her attitudes toward working and living in mainland China, her views on the citizens of Shanghai and Cross-Strait relations remain positive. Ding Liren’s story Ding Liren (Ding is his family name; this is the standard naming convention in China) is China’s top-rated chess player. He’s currently world number 2 behind Magnus Carlsen of Norway3. A bit about competitive chess before I continue. The World Chess Championship is almost universally recognized as the world’s premier chess tournament. It is a head-to-head match between the reigning world champion and a challenger. In modern times, the challenger has been determined via a biennial 8-player tournament called the Candidates Tournament. Ding first participated in 2018’s tournament, placing 4th of 8. It was a decent showing, but after an unbeaten streak of 100 games ending in late 2018 and a win in the 2019 Sinquefield Cup (where he beat top-rated Magnus Carlsen in playoffs), he was widely considered to be one of the favorites in the 2020 Candidates Tournament (along with Fabiano Caruana, the winner of the 2018 Candidates Tournament). Early 2020 is where Ding’s story take a turn for the worse. The 2020 Candidates Tournament was scheduled to take place mid-March in Yekaterinburg, Russia. Upon entry, the Russian government decided to put Ding into quarantine in a rural cottage near Moscow due to the COVID pandemic. This quarantine took an incredible mental toll on Ding, putting him in a tie for last place after 7 of 14 rounds. After the 7th round, FIDE, chess’s governing body, decided to suspend play to mitigate the spread of COVID. When play resumed mid-April 2021, Ding (who did not have to quarantine this time around) looked to be back in top form, winning his final three games of the tournament, one of which was over the eventual challenger, Ian Nepomniachtchi. In a game where draws are incredibly common at the highest level of play, three wins in a row can be considered a major accomplishment in and of itself. The story doesn’t quite end there. With Ian bombing out of the 2022 World Chess Championship match with Magnus, Ding is once again widely considered to be one of the favorites to win the 2022 Candidates Tournament… if he could actually qualify for it. The top two finishers of the 2021 Chess World Cup, 2021 Grand Swiss Tournament, and 2022 Grand Prix are given berths into the FIDE Candidates Tournament4. Although Ding was invited to and had planned on participating in all three of the aforementioned tournaments, he ended up being unable to attend any of them due to a combination of China’s zero-COVID stance and the Schengen area visa policy; he’s repeatedly been unable to purchase a return flight from Europe to China due to China’s constant updating of return flight rules and the complete lack of available flight options. For reference, a one-way flight from San Francisco to Shanghai on 05/13 of this year costs $9628 (transiting through a third country is disallowed if direct flights exist). I was able to secure a one-way flight from San Francisco to Shanghai for $267.20 pre-pandemic. In a major twist of events, it seems that Ding may yet qualify due to Sergey Karjakin’s chess ban5. If Ding does end up playing in the 2022 Candidates Tournament, I’ll certainly be rooting for him - I hope you will too. Ding Liren so obviously belongs in the candidates tournament. That he does not even get a chance to qualify, is saddening. — Peter Heine Nielsen (@PHChess) February 1, 2022 My own story The word “lockdown” is generally understood to be a break in transportation and other non-essential public services; this is not the case in China. The last story that I’d like to share is a personal one detailing the time I had the great displeasure of participating in a 48-hour COVID-induced building-wide lockdown in Shanghai. On the evening of December 13th of 2021, the Anlian building in Shanghai’s Yangpu district went under a full-fledged 48-hour lockdown. Although I had left before police and health officials came to lock the building down, Anlian’s building management was still able to contact and inform me of the mandatory 48-hour quarantine (I was obviously not enthralled by this). Right before I re-entered the building, I took the picture below. One of the police officers noticed me snapping photos and was about to confiscate my phone before I told him that I had already deleted them (I lied). I didn’t end up taking any more pictures of the lockdown due to this strict “no photographs” policy. Shanghai's Anlian building on the first night of lockdown - notice the barricade at the entrance to the left of the blue tent. There's police everywhere, and local health workers arrived in full personal protective equipment (PPE) to administer nucleic acid amplification tests (NAATs). The first night was the most eventful. Occupants ordered takeout (外卖) for dinner, resulting in mass confusion as bags of food were left outside the building entrance with nobody to bring them in. There was also mandatory COVID testing for the entire building and strict mask requirements while lining up for the test; those who weren’t wearing them tightly over both the nose and mouth were forcibly pulled aside and given stern warnings. Later at night, internet speeds slowed considerably as everybody began streaming television shows, downloading Steam games (CS:GO, anyone?), watching Netflix (through a VPN), etc. Long lines formed at bathrooms as well. In particular, the women’s bathroom became congested as many vied for mirror space to apply dry shampoo and/or remove makeup. Local health workers brought and distributed blankets, but only enough for about 1/5th of the people in the building - tough luck for everybody else. Day 2 was much of the same, with most folks fairly tired and sleep-deprived from the night before. Another round of NAATs took place on the first floor during a very specific time window. I was unfortunately late, which resulted in a heated argument between building management (who was supposed to make sure everyone in the building was present for the second round of COVID tests) and local health workers (who had to once again put on PPE and re-open test kits). This happened even though it was fairly clear at that point that nobody in the building had contracted COVID. I later found out that the 48-hour lockdown wasn’t due to secondary contact (次秘接) as opposed to primary contact: an international traveller from Japan who was in contact with a confirmed COVID case had passed through the 25th floor of the building earlier in the day. I was skeptical that health officials would go through , but I later confirmed it with both a local health official as well as one of the folks most heavily affected who worked on the 25th floor of the office building. In any case, if there’s one thing I learned from this whole ordeal, it’s that sleeping in office chairs is extremely uncomfortable. On China’s COVID statistics These stories should help shed some light the three distinct phases that China’s zero-COVID policy has gone through. The first phase takes place from December 2019 to April 2020. During these critical months, China set a precedent for the rest of the world by engaging in mass lockdowns, city-wide testing, and virtual meetings. Official statistics (deaths, cases, recoveries) during this time are highly inaccurate due mostly to intentional but also some inadvertent miscounts. From May 2020 onward, China entered a delicate equilibrium, maintaining its zero-COVID policy through strict 21-day quarantine for international travelers - 14 in a hotel plus 7 at home. Chinese policy became fairly standard throughout the country, and most citizens simply forgot about COVID altogether, save for the occasional article or two bashing America for an unnecessarily high death count. Since January 2022, driven by Omicron’s high transmissibility, China has been grappling with outbreak after outbreak and re-engaging in citywide lockdowns. Through a fundamental misunderstanding of the first two phases, China writers such as George Calhoun criticize Beijing for underreporting the infection rate. He views China’s COVID statistics as a “statistical, medical, biological, political and economic impossibility” because he’s never lived in a dense, authoritarian country. Writers like George deserve substantial criticism for cherry-picking statistics while simultaneously avoiding a wholistic approach to analyzing China’s COVID response. China’s COVID eradication program in phases one and two were successful because the central government’s containment policies were unimaginably draconian. The 48-hour lockdown story should serve as a great example of this - a city or state leader in America forcing an entire building into a military lockdown would be political suicide. As mentioned above, I have no doubt that the COVID cases and deaths for phase one are significantly higher than initially reported. Phase two, however, is entirely different. With COVID’s strong transmissibility and incredibly dense urban centers, entire swaths of the population would be simultaneously unable to work if even a few COVID cases slipped through without quarantine. Simply put, hospitals would be overrun, and the Chinese populace would notice. Halloween (2020) in a tier 2 Chinese city. Quite the super-spreader event, no? My personal opinion The purpose of the three above stories was to portray how lockdowns, quarantine, and general COVID policy in China differs from that of other countries. This should hopefully also show why China’s zero-COVID strategy was considerably more successful than that of other countries in addition to why zero-COVID is socially and economically unsustainable in the era of Omicron. Unless China cuts its citizens off completely from the rest of the world, I don’t see zero-COVID as a long-term possibility for any country, let alone one with an economy and population as large as China’s. China’s zero-COVID policy was warranted when the disease was much deadlier, but with Omicron accounting for nearly 100% of all recent worldwide COVID cases, it is highly impractical for China to continue these unsustainable zero-COVID rules, as they will have increasingly negative social and economic side effects. In particular, China’s zero-COVID policy has put the population in a COVID-ignorant state of mind - more and more people are showing an unwillingness to comply with local COVID mandates, all while the percentage of fully vaccinated elderly Chinese citizens remains low. Thankfully, there are rumors that China wants to ease its zero-COVID policy. However, given the speed with which the central government was able to lockdown cities and restrict the flow of people in early 2020, I see no excuse for the current unease and slowness with which opening up is being discussed. Western media coverage One final note on Western media and its coverage of China’s pandemic response. The majority of media outlets have repeatedly failed to read between the lines when it comes to CPC pandemic policy6. While part of the reason is to prevent the spread of COVID domestically, another major reason is talent retention. China is undergoing a fairly seismic demographic shift, with a rapidly shrinking young population (ages 25-34). I personally know several young Chinese professionals who studied at an international university before deciding to return to China instead of staying abroad - nearly all of these instances were due to rising costs associated with traveling in and out of mainland China, both in terms of time and money. Alex’s and Ding’s stories are perfect reflections of this. It’s time for Western media to treat China’s policies as socioeconomic manipulation at the expense of other countries (including America) rather than natural byproducts of an authoritarian government. Western governments should band together and respond in kind with their own talent retention policies, and, if necessary, embargoes/sanctions against China. Wrapping up Thanks for making it this far - I hope this post was informative. As mentioned before, this is part II of a four-part series. In part III, I’ll cover the Chinese tech scene, from 996’ing to the open source community. Stay tuned! Example: where’s the line for white, non-Latina women in this article? ↩ 有钱没钱回家过年, i.e. returning home for LNY is a must, regardless of one’s fiscal condition. ↩ Ding and Levon Aronian are my two favorite players. In particular, I enjoy watching Ding’s solid playstyle in conjunction with his cold, hard calculation capabilities. He’s also an incredibly humble person.</sup> ↩ Traditionally, there has also been a slot for the highest-rated player, but this was removed in the 2022 cycle due to rating protection/manipulation by previous Candidates Tournament participants (Ding would’ve otherwise qualified this year). ↩ Sergey had qualified via the Chess World Cup held in 2021, but due to his support of the Russian invasion of Ukraine, he received a 6-month ban from all FIDE tournaments. This reinforces my belief that the only true winners of Russia’s invasion of Ukraine are China and India. ↩ China’s great firewall is another example of Western media missing the complete picture. While minimizing external influence and internal dissent is undoubtedly a major reason for building the firewall, an equally important reason was to promote the growth of China’s own tech giants - Alibaba, Tencent, Baidu, etc. I’ve actually read articles and papers which argue that the latter reason is the primary one for the great firewall; given the prevalence of VPNs and proxies (翻墙软件) within mainland China, I must say that I agree. ↩

29th Mar 2022 • 59 votes
My Experience Living and Working in China, Part I

In this four-part article, I’ll go over some of the lessons I learned living and doing business in China’s tech industry. During my time in China, I’ve led a team of 10+ engineers to develop a location-based IoT and sensing platform, co-founded an open-source project called Towhee, and developed countless relationships with folks in a number of difference cities (many of whom I now consider good friends). I’ll go over some of the common misconceptions about China ranging from living and working in China to the government’s pandemic response. Part I of this blog post covers some of the basics without diving too deep into the tech world: some interesting things I learned while living, working, and interacting in China. If you have any questions, comments, or concerns, feel free to connect with me on Twitter or Linkedin. Thanks for reading! Update (03/29/2022): Part II is up. You can read it here. Before I begin, a bit about me. I was born in Nanjing, China, but moved to the US when I was barely three years old. I spent about five years in New Jersey before moving to Corvallis, Oregon (a place that I am, to this day, proud to call home). I moved to Norcal for college, studying EE (with a minor in CS) at Stanford. I stayed there for my Master’s degree as well, which I completed in 2014. Afterwards, I worked at Yahoo’s San Francisco office as a Machine Learning Engineer for two years. As a hybrid software development & research role, I was able to research and productionize the industry’s first deep learning-based model for scoring images based on aesthetics. I also had the pleasure of attending Yahoo’s internal TechPulse conference (where my co-author and I won a best paper award) all while keeping up with interesting deep learning uses cases. All-in-all, I was quite happy with the work I was doing, but also slowly started to develop the entrepreneurship itch. In the lead up to 2017, I returned to my Electrical Engineering roots and co-founded a company developing solutions for indoor localization and navigation. Efforts I put in towards finding investment continuously had little to no return - feedback we got from a lot of investors was that they believed in the team, but that the product lacked a “viability test” with an initial customer, something difficult for an early-stage hardware startup due to the high development overhead. I had some simulations and early board designs which I believed was enough, but for an investor, diving deep into an unknown company’s technology can often be costly in terms of time and energy. This is where my story takes a bit of a turn. In late 2017, the company received an early-stage seed investment offer from mainland China, and after a bit of consideration, we decided to go for it. It was at this point that a lot of friends and family asked me a question I’ve become very good at answering over the years: Why did you choose to leave Silicon Valley for an unknown country with less talent and an arguably inferior tech industry? The answer is threefold: 1) I felt that Chinese investors were more open to funding hardware startups due to the ultra-fast turnaround times for fabrication, 2) the bay area was just getting too damn expensive for my taste, and 3) from a personal perspective, I wanted to understand my birth country from cultural, social, and economic standpoints. I felt good about my decision and thought that the greatest challenge would be language; my Mandarin was workable but far from proficient. San Francisco Chinatown is a poor caricature of Qing dynasty China. Same goes for the architecture you see in Chinese restaurants across America. Photo by Dennis Jarvis, CC BY-SA 2.0 license, original photo. Alipay, WeChat, and QR codes The very first thing you’ll learn about China is that everything revolves around either Alipay (支付宝) or WeChat (微信), two apps known primarily for their payment capabilities. What a lot of folks outside China don’t know is that these two apps can be used as gateways to a number of other mini-programs (小程序), i.e. subapps developed by other organizations such as KFC, Walmart, etc. These subapps can be used directly within either Alipay or Wechat, forgoing the need to individually download apps from an app store. Imagine ordering furniture from IKEA, dinner from Chipotle, and movie tickets to Century Theaters all from the same app - that’s Alipay/Wechat for you. The obvious downside to this is that personal information becomes extremely centralized. If something like this were to happen in the US, antitrust lawsuits would come faster than a speeding bullet, and for good reason too - big conglomerates monopolizing data is dangerous and their wide adoption stilfes innovation. While Alipay and WeChat were years ahead of the US’s card-based (credit/debit) payments system when first released, Android Pay and Apple Pay (NFC-based) have since then become a lot easier to use. Alipay and WeChat work by opening a camera and scanning a QR code, which redirects you to the store's payments page. You can then pay an arbitrary amount of RMB, which will immediately show up in the payee's balance once complete. Photo by Harald Groven, CC BY-SA 2.0 license, original photo. Here's a screenshot of my Alipay. Its primary use is for payments, as evident by the top row, but mini-programs (second row from the top) have now become an important part of the app. Alipay and WeChat’s success within mainland China are in large part due to the smartphone + QR code revolution, which has truly permated all aspects of Chinese life. Shared bikes can be unlocked by scanning a QR code on your phone. You can add friends on Alipay and WeChat using QR codes. Many Communist Party of China (CPC) functions rely on tight Alipay or WeChat integration. You can even login to third-party websites and check in as a guest in office buildings via QR codes. I am by no means a security expert, but this system somehow feels a bit gameable despite its widespread use by over a billion people. Red tape, CPC style While Alipay and WeChat have made life considerably easier for the majority of people living in China, many civil and commercial processes are still incredibly difficult and filled with unnecessary paperwork. Registering for a company and acquiring a work permit in China is quite possibly one of the most insanely frustrating things on Earth. I won’t go into all of the details, but just know that it involved a mountain of paperwork, letters of commitment, countless passport scans and other documentation, etc… We ended up hiring an administrative assistant to handle a lot of this work for us, but the amount of time and energy one has to dedicate towards this can be a bit demoralizing. Some provincial (the equivalent of a state in America) governments have issued new policies aimed towards combating the problem of excessive paperwork. But the CPC is massive, and massive entities have even larger amounts of inertia. Rather than reducing the amount of mandatory paperwork, many of those policies revolved around reducing the number of trips needed to see the process to completion. This is definitely a step in the right direction, but compiling a thick folder of paperwork is still not a fun experience. A common joke in China is that there are four castes. From top to bottom these are: 1) CPC officials, 2) foreigners, 3) white collar workers, and finally 4) blue collar workers. Even with this supposed semi-VIP treatment, getting a business license such as this one is something I do not want to go through again. The same goes for pretty much all processes which require some sort of government approval, including but not limited to acquiring a work permit, registering an address change, and replacing a lost ID card. Even flying to China requires a mountain of paperwork and approvals, even if you already have a Chinese visa. My main problem with all this is the CPC’s complete lack of transparency. Why can’t I transit through a third country on my way to China if I’m going to have to undergo 14 days of mandatory hotel quarantine plus another 7 days of home quarantine anyway? From a foreigner’s perspective, this is one of the most frustrating aspects of China in an otherwise amazing experience - CPC overreach in almost every aspect of everyday life. The CPC grossly mismanages via overregulation in some sectors and underregulation (hello, housing market) in others. Social regression, economic growth This ties into another common misconception about China - the idea that the government wants to track everything you do at all hours of the day (for the moment, let’s ignore the feasibility of doing so for a population for 1.4 billion people) through a combination of CCTV, mobile phones, and browsing habits. I’ve read countless articles written by American and European media outlets overstating the dystopia that China has fallen into, but the reality is that the Chinese government cares little for storing said data long-term and uses it primarily in criminal cases. I was involved in a project that uses face recognition to track residents going in and out of communities; not only were the residents eager to have such a system installed, but it eventually also helped track a man guilty of sexual assault. Data from such a system was also entirely managed at the local level and not automatically shared with the provincial or central governments. Xinjiang and Tibet are two exceptions to this which I won’t dive deep into. I also haven’t been to either province, so it would be inappropriate for me to comment on what’s going on in Western China. Other surveillance programs such as social credit (社会信用) and city brain (城市大脑) are also widely misunderstood. The social credit system primarily punishes and constrains businesses rather than people, while social credit for individuals is somewhat analagous to a background check in America. A lot of American and European commentators will point out some insane social credit rules, such as deducting points for cheating on the college entrance exam (essentially the SAT on steroids); while I do not disagree, there are undoubtedly similar occurances for American laws. When I was still a student at Stanford, I once lost an internship opportunity because a “traffic violation” - biking at night without a bike light - showed up on my background check. In all fairness, I consider it to be extremely easy to stay off China’s social credit “blacklist” - just be reasonable and avoid breaking the law. China’s “city brains” are a totally different beast, designed to anticipate and reduce traffic, improve city planning, and provide advanced 3D models and visualization techniques. My understanding is that most city brain projects achieve… none of these, despite the fact that cities pay the equivalent of tens to hundreds of millions of dollars for just one of these solutions. An interesting side note - a recruiter once tried getting me to lead Yiwu’s city brain project, but it fell through after he discovered I wasn’t a Chinese citizen (these projects, for obvious reasons, strictly prohibit participation from non-Chinese citizens). An image I found of Pudong District's (Pudong is a district in Shanghai, home to Shanghai Pudong International Airport i.e. PVG) city brain platform via a Baidu search. Although it looks fancy, there is really little to no new underlying technology behind these systems. You might wonder how China’s economy is able to grow at such a blistering pace despite the huge number of arguably inefficient government programs. The answer is rooted in East Asian culture: work ethic. Blue collar Chinese workers are willing work 60+ hour weeks while sustaining themselves on ramen and $1.5 cigarette packs every day just to ensure their kids can get the best education and an improved quality of life. The whole concept of 996 is rooted in the Confucian ideals of hard work and industriousness. The “laziest” men and women in China are arguably owners of small- to mid-size businesses; they are often the last to arrive and first to leave from work. The CPC loves to take credit for China’s recent growth, but the reality is that the growth was the result of Chinese work ethic plus a switch from central planning to a mixed economy. By industriousness, I really do mean everybody. In 2019, I visited a prison in Jiangxi to discuss a potential prisoner safety solution. In a meeting with the vice-warden, he tacitly mentioned how Adidas shoes were being made in the prison that he was running. We quickly pulled out of that project. I haven’t bought Adidas- or Nike-branded shoes since1. Personal identity With the current political climate and state of affairs in mainland China, many Gen Z-ers and Millenials (mostly from Guangdong Province), as I consider Macau, Taiwan, and Hong Kong to be separate territories) who hail from mainland China but don’t refer to themselves as Chinese, instead calling themselves Cantonese. While some simply wish to preserve personal identity, there are also many who dissociate themselves simply because they believe the rest of China to be inferior. I’ve heard some of the most asinine reasons - people spit too often in the streets, everybody plays loud Douyin/TikTok videos while riding high-speed rail, too many cigarette smokers, etc. These are the same people who conveniently forget that some sidewalks along the Mission are lined with old discarded chewing gum, that loud music is played frequently on BART or in a BART station, or that open drug usage occurs nightly in the Tenderloin. I strongly dislike the CPC, but have immense love for Chinese people and Chinese culture. China is an super-massive collection of people that, in my eyes, have made incredible economic and social progress since my birth year, and will continue to do so in the decades ahead. And as a result of all of this, I’m proud to call myself Chinese American. Wrapping up Entire dissertations could be dedicated to each of the above sections, but I wanted to highlight misconceptions and some other bits of information that might not be as readily accessible. In particular, the previous section is by no means a comprehensive list of social issues that China is facing, but rather a brief summary of things that might not be too well understood in the West. #MeToo2, a declining natural birth rate, and racial divisions are just a small number of similar/parallel issues that are happening in both America and China. If you made it this far, thanks for reading. This post has been a bit rambly and all over the place, but the next couple should hopefully be a bit more focused. If you liked this article and are an open-source developer like myself, please give the Towhee project a star on Github as a show of support. In part II, I’ll cover the Chinese tech scene, from 996’ing to the open source community. Stay tuned! Forced labor in Xinjiang has made headlines in recent months, but in reality, it happens everywhere in China. ↩ Justice for Zhou Xiaoxuan. ↩

7th Feb 2022 • 56 votes

More in AI

Teaching in the AI Age: My Spring 2027 Classes!

As we approach the end of a tumultuous year, it is time for me to turn my attention to the rituals that have operated as markers for much of my working life. One of those is an invitation that I have extended at the start of every school year, for the last few decades, to anyone interested, to sit in on the classes that I teach. In this post, I will flesh out the details of my classes, with the different formats that I offer them in, as well as guidance on sequencing and fit. I would hasten to add that I have no personal or commercial interests in convincing you to take any of these classes, and I will not take it as a slight if you find none of them interesting. In fact, if you have more interesting or fulfilling things you can do with your time, I would encourage you to pursue those instead. My Teaching Journey     I am a teacher and it is a passion that has shaped every choice that I have made in my professional life. I taught my first class at the University of California in Berkeley in the fall of 1984, a foundational finance class (BA 130) for undergraduates, and in the two years that I spent there, I created the outlines of many of the classes that I teach today. I moved to  NYU's business school in 1986, started with a corporate finance class that I taught to first-year MBAs, and hijacked a security analysis class, reworking it into a valuation class, that was offered to second-year MBAs. For the last decade, I have also taught this class to undergraduates, and while there are mild logistical differences between the two classes, the material is the same.      I am under no illusions that anything that I say in class will be profound or mind-altering, but here is what I try to convey in the classroom.  Thought over content: I have never been a fan of using my classes to convey content that my students can pick up on their own, by reading, watching or listening to what is already in the public domain. When I started teaching, this was a fairly simple exercise, since there was no online content and book choices were limited, but it is a much more difficult task today, made more so by the ease with which AI can digest content and present it in summary form to users. I try to use my classes to offer my students a view of my thinking process, in all of its messy details, as I try to reason my way to answers to questions. That does make teaching a much riskier game, since there are questions to which your final answer has to be "I don't know" or "I am not sure", but I am okay with that. Out-of-the-box over safe thinking: I teach business students (undergraduates and MBAs) and I recognize that, for most of them, their primary reason for taking my classes is not intellectual advancement but preparation for jobs that they hope to have in finance when they graduate. I disclose at the start of each class that if their end game is to value companies like a banker or to provide corporate finance advice like a big-name consultant, my class will probably hurt more than help. It is no secret that I think than bankers price companies, rather than value them, that much of appraisal practice is about checking boxes and that a significant part of consulting is cookbook-based, and I try to give students the tools to challenge the status quo.  Excitement over rote learning: As some of you may know, I have spent a large portion of the last year and a half looking after my granddaughter, through the first year and half of her life, and I cannot help but be caught up in her excitement about learning new things (to say or do) every day. I firmly believe that while learning can be hard work and sometimes frustrating, human beings are hardwired to enjoy learning, and that the tragedy of education systems is that they work so hard to extinguish that joy. While many of the students in my classes may be jaded from their educational experiences, I hope that they will find the thrill that comes from learning,  using what they learn to make connections and deepening their understanding of markets and businesses. I would be lying if I said that I find every aspect of teaching to be joyful, but I view even the parts that I find to be a drag (grading, dealing with bureaucracy) to be a necessary part of the process.  My Classes     In my first year at NYU, I taught corporate finance to the first-year MBAs and valuation to the second-year MBAS, and those two classes still represent the bulk of  my core teaching, with the only variant being the addition of an undergraduate version about ten years ago. In the last 1990s, I was asked to be the coordinator for a speaker series on investments, and that experience led to a third course on investment philosophies that I have fleshed out over time, though never delivered in a classroom setting. Along the way, I also created my own versions of classes on the language of business (accounting), the tools for data analysis (statistics) and the basic foundations of finance (time value, risk and cashflows), with the selfish intent of supporting students in my core classes, who may be lacking those skills. The material in my teaching has found its way into my books on valuation, corporate finance and investing, and for those whose exposure comes through those books, I have courses structured around them. Core Classes     I teach three core classes - corporate finance, valuation and investment philosophies - and while I love teaching them all, and they share the same first principles, each represents a different perspective and comes with different end games and constraints. In this section, I will provide my (biased) perspective on each of the classes and a sense of who they are most directed towards.     1. Corporate Finance     Corporate finance is on the course listings of almost every business school in the world, but it is taught in diverse ways and often with different content. Without passing judgment on any of those variants, my corporate finance class is a class about the first financial principles that govern how businesses run, and the implications of not following these principles. While you can find the details of the class by clicking on this link, here is how I would describe this class in broad brush terms: Big Picture: In the very first session of my class, I start by describing it as a big picture class, and much of my audience is skeptical, since they have heard multiple classes described in those terms. It is to counter that skepticism that I summarize the class on a single page, laying out without using buzzwords the first principles (as I see them) that govern corporate finance) and the end game in business.  Applied and Real (Time and Companies): I build my class around six very diverse (and real) companies - Disney (US-based, entertainment), Vale (Brazilian mining), Deutsche Bank (Germany-based bank), Baidu (Chinese tech), Tata Motors (Indian family-group auto) and a small privately owned bookstore in New York city (that I have named Bookscape). As I progress through the class, I apply every aspect of the class to these six very diverse companies, with the intent of both showing how much they share in common as well as differences. While the numbers that I present in my slides represent the time that I put my slides together, these are live companies, with developments (good and bad) altering the narrative. Using Disney as an illustrative example, Michael Eisner was its CEO, when I first started using the company in class in the 1990s, and I transitioned into the Bob Iger era about two decades ago and in the spring, it will be time to move on to Josh D'Amaro as the new CEO. On that journey, Disney had winning acquisitions of Pixar, Marvel and Lucas Films and a losing deal in Fox, saw its business model disrupted by Netflix (and streaming) and is now facing an uncertain future. With real companies, things are never boring! Interconnected: While life (and business) would be simpler if decisions made by companies on one dimension (investing, for instance) did not affect decision on other dimensions (financing mix and dividends), for instance, the truth is that they are related. A company that chooses to invest more in projects or does a big acquisition often has to borrow more and pay less in dividends, and ignoring those interconnections will not make them go away. Conversely, a company that chooses to pay dividends that it cannot afford to pay first will find itself rationing investments and borrowing money to cover the deficit. It is these interconnections that make corporate finance, for any company, a narrative, where changing one strand of the story always changes others as well. In Spring 2027, AI will undoubtedly enter the discussion, and I plan to use the tools of corporate finance to address some of the big questions that arise in that space. Specifically, the tools of investment analysis are critical in addressing the question of whether the trillions that companies are spending on AI cap ex will pay off as value added, the financing mix tools in whether the funding for these investments should come from debt or equity and the dividend assessment tools in analyzing the implications for cashflows available to be returned to shareholders. 2. Valuation     Since I teach valuation to second-year MBA students who have often taken corporate finance from me in their first year, I am asked what the difference between the two classes is, and my response is that they are built around the same principles, with the key difference being that in corporate finance, you look at businesses from the inside out (as owners and managers) and in valuation, you look at the same businesses from the outside in (as investors or lenders). That said, my valuation class is a broad one, extending beyond publicly traded companies to private businesses to projects (joint venture and infrastructure) and even to collectibles and currencies. Since valuation classes can take many different forms, and I do not want to waste your time, I should emphasize both what the class will cover and what it will not. Valuation versus Financial Modeling: I have never opened or worked on an excel spreadsheet in my valuation class, and I plan to stick with that practice this coming spring. It is my view that valuation, as practiced, has lost its way and become financial modeling, with elaborate spreadsheets extrapolating line items (earnings, cap ex, depreciation, working capital) in excruciating detail. I believe that valuations start with an understanding of a company's business model and the competitive landscape, are sustained by stories about the future, bounded by economic first principle and good sense, and a conversion of those stories into core inputs in parsimonious valuation, where less is more.  Price versus Value: I draw a contrast between the words "value" and "price", arguing that the two are separated not just in terms of determinants but also in terms of how each is estimated. The first two thirds of my class is built around understanding cashflows, growth and risk, the three drivers of value, but once that foundation is built, I use it to take about pricing, where the end game is estimating how much to pay for an investment, based on others are paying for "similar" assets.  Action versus Abstraction: I am often accused of being a valuation theorist or academic, because I do not manage other people's money, and that is true. I do, however, value companies to assess whether they are good or bad investments today, with the intent of acting on those valuations, if action is merited. My valuations have always been for an audience of one (myself), since I believe that good investing requires taking ownership of your decisions, and basing your decision to buy or sell on someone else's valuation or opinion contradicts that principle. The two sections of the class that I will teach in the spring will represent my 59th and 60th teaching valuation, and I will be open about admitting that almost everything I know about valuation, I have learned in the course of teaching this class. Valuation is a craft, and the essence of a craft is that it can never be mastered, and I look forward to learning and relearning new things in the spring, as the market comes up with new surprises. 3. Investment Philosophies   As I noted earlier, this class was born out of my experiences in managing a speaker series on investing, where each speaker (very successful in terms of making money in the market) claimed to have found the one true path to investment nirvana and was quick to consign those who have alternate views to the investing version of hell. It took me a while to work through my own biases and pre-conceptions, but it is my conclusion that there are many different pathways to investment success, and the right path for you is the one that best fits you (your personality and characteristics). My investment philosophies class is designed to leave the door open to the alternate pathways, and with each one, providing as clear eyed a look as I can muster of what you need to bring to the investment table to make that one work.      In addition to allowing for different investment philosophies to co-exist in markets, I hope that this class also brings home the lesson that no matter what your investment philosophy is, and how deeply held your views are on it being the right one, you will become a better investor by listening to those with alternate market views and philosophies. Thus, value investors will become better at assessing and investing on value, if they incorporate what growth investors see in their investing template, and both groups will benefit by listening to traders' views on mood and momentum.  Pre-class Prep     There is little in terms of pre-learning that is required for my core courses, but the hill you have to climb with each one becomes more daunting if you struggle to differentiate gross from operating income, don't quite understand the difference between the mean and the median and/or don't quite grasp why the Dodgers are paying far less on their $700 million Shohei Ohtani contract than the Mets are on their $700 million Juan Soto contract. It is to fill in those gaps that I created shorter classes focused on delivering just the basics (which is all you need) or accounting, statistics and foundational finance. 1. Accounting     Accounting is the language of business reporting, and understanding that language is critical to any financial analysis. That said, much of accounting theory and practice is a wasteland, where you delve into details that no one cares about (other than accountants) with little of consequence for value or business. In fact, the pursuit of fair-value accounting across accounting standards (IFRS, GAAP) has made accounting statements less useful and more filled with distractions. Given that dyspeptic view of accounting that I bring to the table, the accounting class that I offer is a design (albeit one that accounting purists and investors may disagree with) that tries to get back to the things that matter in financial analysis and valuation, while identifying the things that do not. Since I have no interests in changing accounting rules, I have no qualms about upending decades of accounting standards, if I feel that they are getting in the way of sensible financial analysis. That led me to start capitalizing leases and other contractual commitments in 1992, when computing debt ratios and invested capital, and accounting standards have now caught up (starting in 2019). I believe that the accounting definition of capital expenditures misses large chunks of reinvestment (with R&D, customer acquisition costs and brand name advertising)  for future growth, and rather than wait for accounting to catch up with that reality,  I capitalize these expenses now.  If you do take this accounting class from me, please be careful about carrying the lessons you learned in this class to your regular accounting classes, since it is likely that you will get a hostile reception and a failing grade. 2. Statistics     If accounting is the language of business reporting, statistics is the language that converts data into insight and knowledge. One of my regrets is that I did not pay as much attention to my statistics education during my college years, but I offer two reasons in my defense. The first was that I took my statistics classes at a time when data was on paper (often in archives or on mainframe computers) and difficult to access, thus making data collection a slog. The second was that the class was taught with the clear intent of driving even those remotely interested away from statistics, with examples either so contrived that you did not need statistical tools to arrive at conclusions or so completely disconnected from business and investing that you wondered what the point was.      In business and investing, we are now in the data age, where quantitative and qualitative data is both plentiful and accessible and knowing how to use statistical tools is critical in using that data. There are quants, whose entire investing philosophy, is built around carrying data analysis to degrees of sophistication that I have neither the aptitude nor the stomach for, but there are simpler tools that don't require much more than common sense to understand and use. My statistics mini-class, like my accounting class, is unlikely to meet your statistics professor's standards, but mine are much lower. Again, this class is less about making you a quant and more about giving you data sense and tools, and I think that the payoff is much greater. 3. Foundations of Finance     If you don't follow baseball, you may have been mystified by my lead in with Shohei Ohtani's and Juan Soto's $ 700 million+ contracts, but they offer a good introduction  to what is still the most widely used tool in finance, which is present value. Shohei's contract with the Dodgers, while nominally worth $700 million, is $2 million a year for the first ten years, with $680 million due in the ten years afterwards. Soto's contracts with the Mets is a more conventional one, with $123 million up front, and about $45 million a year for the first ten years. In present value terms, Soto's contract is worth about 60% more ($550 million) than Ohtani's contract ($350 million), and it is entirely possible that Nez Balelo, Ohtani's agent, and Ohtani knew this walking in, but if they did not, they may be good candidates to sit in on my foundations class. This class also gives me a chance to introduce the macro foundations that are core components of financial analysis, starting with inflation determinants and moving on to how inflation changes play out in interest rates and exchange rates.  Book-based Classes     I love to write, on a multitude of platforms, often starting with posts on a blog that is reproduced on Google Blogger, Substack and Linkedin, but often ending up as chapters in one of my books. If you are reading one of those books, and would like a class that is tailored to the book, I do have a couple of class offerings that may work for you. (If you are interested in buying any of these books, Amazon seems to either have found a way to put them in the bargain basement pile or permanently cut prices, since each one looks like it available at about 90% off. That is not great for my royalty checks, but I could not be happier at the development.) 1. Corporate Life Cycle    In this book, published in 2024, I explore how companies age, why fighting aging is for the most part pointless and value-destructive, and how pinpointing where your company is in the life cycle can prepare you better to analyze, value and manage that company.    It is perhaps the least numbers-oriented of my books, but it does provide a structure that explains both why companies do what they do, as well as what causes them to overreach and misbehave. At the time that the book became available for sale, I created a class structured around the book and if your interests are restricted to this topic, you may find that class more focused.  2. Investment Fables (In Process)     I wrote this book more than two decades ago, and it is built around "can't miss" investment sales pitches that sound alluring, but always come with constraints and catches, some of which can be deadly for your portfolio. Rather than reject these pitches outright, I take them at face value and look at the companies that would have emerged as bargains, using these pitches, and then probe these companies for their weakest links.  It went out of print about a decade ago, and I bought the rights back for a pittance, hoping to give it a decent burial, but in an age where social media is filled with hucksters selling repackaged versions of these sales pitches, I decided to write a new edition of the book, this time with the intent of self publishing. I am about halfway through that revision and hope and hope to have a complete version available to readers by March or April of next year, and I also plan to accompany it with a class that tracks the book. I know that this is premature, but I will post on my webpage and on social media when the book and class are ready to go. Teaching Platforms and Choices    My teaching in the spring will be primarily in the classroom, and to be in that room, you will need to be an NYU student, registered in the class. There are, however, multiple ways in which you can take my classes, many of which are free and in a multitude of formats. 1. Regular Classes (Free)     The choice that requires the biggest time commitment is to follow my regular classes on corporate finance and valuation, which at 80 minutes apiece (75 minutes for the undergraduate class) and twenty six (twenty eight) sessions will tax your endurance. If you decide to go this route, there are two sub-choices.  In real time: You can take the class, in real time, starting in late January 2027 and ending in mid-May 2027, since the class sessions with material will be recorded and posted as YouTube videos about an hour or two after class ends (Mondays and Wednesdays).  The plus is that like the students in my class, you will get a chance to absorb the material from a class and perhaps apply it in the days between the sessions, but the minus is that it will require patience. It will also be the most updated version of the class, with the market intruding in real time into its contents. Archived version: If Netflix has made you a binge watcher, and you cannot wait for weekly installments, you can watch the archived version of the class from Spring 2025. The plus is that all of the sessions (and quizzes and exam) are already accessible, but the minus is that there will be no discussion of Anthropic or OpenAI, except in passing, since neither was positioned for an IPO then. The links to the regular and archived classes is in the table below, with the entry pages for the courses, which you can browse for material. table.tableizer-table { font-size: 12px; border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; } .tableizer-table td { padding: 4px; margin: 3px; border: 1px solid #CCC; } .tableizer-table th { background-color: #104E8B; color: #FFF; font-weight: bold; } CourseEntry PageSpring 2027 (Real time)Spring 2025 (Archived)Google Group Corporate FinanceCF Entry pageClass - Spring 2027Class - Spring 2025Class Group Valuation (MBA)Val Entry pageClass - Spring 2027Class - Spring 2025Class Group Valuation (Undergraduate)ValUG Entry pageClass - Spring 2027Class - Spring 2025Class Group The Google groups are intended to provide support and create discussions with fellow students about the topic, and I hope that they deliver on that intended purpose. The problem with creating anything online, as I discovered a couple of years ago, when I created WhatsApp groups is that they can be overrun by bad actors. I hope that the Google groups version works better.     I know that this is implied but I want to be explicit to prevent any misunderstanding. If you decide to take the regular class (in real time or archived), you are taking it unofficially. The good news is that you do not need my permission to take the class or pay for it, but the bad news is that you will not get credit for the class or have your project (if you choose to do it) graded by me. I am sorry! 2. Online Classes (Free)     I know that watching an 80-minute lecture online is tough to do, and I have created 15-20 minute versions of both my corporate finance and valuation classes. With the investment philosophies and the pre-class prep classes on accounting, statistics and foundations, where I do not teach regular classroom classes, this is the only version available (that is free): table.tableizer-table { font-size: 12px; border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; } .tableizer-table td { padding: 4px; margin: 3px; border: 1px solid #CCC; } .tableizer-table th { background-color: #104E8B; color: #FFF; font-weight: bold; } CourseClass webcasts    Google Group Accounting 101Class webcasts and material    None Statistics 101Class webcasts and material    None Foundations of Finance 101Class webcasts and material    None Corporate Finance OnlineClass webcasts and material    Class Group Valuation OnlineClass webcasts and material    Class Group Investment Philosophies OnlineClass webcasts and material    Class Group Corporate Life Cycle OnlineClass webcasts and material    Class Group The  upside is that these classes are less of a strain on your time and patience, and while much of the content gets delivered in the shorter lectures, the videos are dated and topics can feel rushed. As with my regular classes, the google groups are designed for support and discussion! 3. NYU Certificate Classes (Paid)     I have no qualms about sharing my classes online, but the free versions come with a catch. I do not have the bandwidth to certify that you have watched the sessions or that you have mastered the material. For some of you, that may be a deal-breaker, since you may want a certification either for gaining employment or job advancement, and there is a choice, albeit one that comes with a cost. NYU offers a certificate version of my three core classes - valuation, corporate finance and investment philosophies:  table.tableizer-table { font-size: 12px; border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; } .tableizer-table td { padding: 4px; margin: 3px; border: 1px solid #CCC; } .tableizer-table th { background-color: #104E8B; color: #FFF; font-weight: bold; } NYU Certificate Class    Link to registration (on NYU exec ed site) Valuation (Spring & Fall 2027)    NYU Valuation Certificate Corporate Finance (Spring & Fall 2027)    NYU Corporate Finance Certificate Investment Philosophies (Spring 2028)    NYU Investment Philosophies Certificate The material is largely the same as the material in my free online classes, but there are two advantages. The first is that I do meet online in a zoom office hour with participants in these classes, once every two weeks, to talk about market developments and answer questions about class content. I also  grade the projects that are required in each class, providing feedback where appropriate. The second is that the it forces discipline by requiring that you be ready for quizzes, exams and the project on calendar time, since it is a semester long class (offered both in the fall and spring), if you want certification. As I mentioned earlier, it comes with an NYU price tag, which some of you may find off putting, but I am afraid that there is little that I can do about it, other than offer you the free versions as an alternative. 4. In-person Seminars (Paid)     If you are interested in sitting in an in-person class that I teach, and are not an NYU student, I do  teach my valuation and corporate finance classes in other parts of the world, usually in two-day intensive workshops (with about  seven to eight hours of class each day). These classes are logistically challenging to organize, since they require planning and working with facilities (hotels and seminar rooms) that can be used for the teaching, as well as registering guests and providing support. Lacking local knowledge, I leave those plans in the hands of external entities that I trust on logistics and planning.      In 2027, I will start with a two-day seminar  in early February  on corporate finance, in Portugal, and am scheduled for a two-day valuation seminar, in early April in London. I am planning on repeating these later in the year in Latin America, Asia and perhaps one more in Europe, but neither the dates nor the locations have not been firmed up. The schedule, with links to the organizers, is below: table.tableizer-table { font-size: 12px; border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; } .tableizer-table td { padding: 4px; margin: 3px; border: 1px solid #CCC; } .tableizer-table th { background-color: #104E8B; color: #FFF; font-weight: bold; } CourseLocationDatesOrganizer Corporate FinancePorto, SpainFebruary 5 & 6ARC Executive ValuationLondon, UKApril 8 & 9I-Deals Network ValuationLatin AmericaTBATBA Valuation EuropeTBATBA ValuationAsia (TBA)TBATBA As with the certificate classes, the pricing for these sessions is in the hands of the organizers, and there is little that I can do to make changes in that process. Class Sequence and Choice     If you find yourself interested in one or more of my classes and are wondering about fit (whether it is the right class for you) and sequence (which class to take first), I do have a general guide that you may (or may not) find helpful in making  your choices: In my biased view, if you have the time to take only one class, I would make it corporate finance, since understanding businesses from the inside out will help you, whether you are a owner of a business, an investor or just an onlooker. If you are an investor, and want to get perspective on how you should approach investing, investment philosophies may better meet your needs. You may find the same topics visited in multiple classes, and while it will feel like repetition, looking at them from different perspectives will enrich your understanding (I hope).  The Promise and Threat of AI     While AI has been a presence in our lives at least for the last four years, it has become omnipresent in the last year, and there is no way that I can teach my classes without confronting itspresence. I am often classified as a skeptic on AI, and I am one when it comes to business potential, but I am aware of how powerful AI is already and how much more power it will acquire over time. As some of you may know, I have at least five bots with my name attached to them, and while I am not formally or officially involved in developing any of them, there are at least two where I have provided input in developing my AI doppelgangers. The first is a bot that has been developed by my friend and NYU colleague, Vasant Dhar, that has been absorbed everything that I have written, said or done that is in the public domain, and it can value businesses now. The other is a a more focused and business-directed app in appraising businesses that has been developed by Atulya Sarin, also a good friend, and you can find it here. It is sobering to have an app that can replicate much of what you do, using language that you would use and analysis that resembles yours, and it has led to some soul searching on my part on those tasks that my app can do better than I can and those where I think (or perhaps hope) that I have an edge.     During the spring semester, I will have no choice but to confront AI's presence both in markets and in our personal and working lives directly. The market presence will show up in the content, i.e., in the companies that I talk about and value during the class, with Anthropic, OpenAI and Nvidia all making their presence felt. In class, my plans to deal with AI are more nuanced, keeping it at arms length in some part of the class and embracing it in others.  On my exams and quizzes, which have always been solving problems (with nuance) and not multiple choice, I will abandon four decades of open-book, open-notes format for a closed-book format, simply because with classes that have 250-300 students in them, monitoring what students access digitally becomes impossible.  In the classroom, the modifications will be minor, since I have always been a minimalist user of technology. I will encourage students to print of lecture note packets and turn off devices in class, and try to bring back the dynamics of classroom engagement, but I may be pushing uphill! In all of my classes, students have to show their learning by applying it to real companies, in real time. In my valuation and corporate finance classes, each student has always picked a company (any company they want) and analyzed the company during the semester, to turn in as a project report at the end. Since I am sure that there is a Claude or ChatGPT agent that can now do this on command, I will allow students the option of using an AI agent to generate their reports on one condition, which is that they then also write reports where they explain what they would do differently (from the AI agent). It will be a test and an uncomfortable one of whether they can add value to an AI agent, and they might not like the answer, but it is one that can inform what career paths they should follow. At the risk of repeating a line that I have used before, we have to live in the world we are in, not the world that we wished to be in. That has always informed how I have tried to adapt, sometimes successfully and sometimes not, as my students have changed in terms of how they learn but what they want to learn, and Spring 2027 is going to be no different! Conclusion    I have heard the critique that "those who can't do, teach" and if that is what you believe, I won't disagree with you, and I would recommend that you not waste your time on my classes. I would like to think (and this may be delusional on my part) that I teach because there is nothing else I would rather do in my working life, but you may be right, since I certainly have neither the desire nor the mindset to do what bankers, consultants or active money managers do. In my defense, I have never once failed the "Monday morning test" (where you wake up on Monday morning and say "Oh $#!t, it is Monday") and I am just as excited to be teaching this coming spring, as I was in 1984, when I taught my first class. I hope that you have found or will find the same joy in whatever you choose to do with your life! YouTube Video Links to Classes table.tableizer-table { font-size: 12px; border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; } .tableizer-table td { padding: 4px; margin: 3px; border: 1px solid #CCC; } .tableizer-table th { background-color: #104E8B; color: #FFF; font-weight: bold; } CourseMBA (Spr 27)MBA (Spr 25)Undergrad (Spr 27)Online (Free)NYU Certificate Corporate FinanceLinkLinkNALinkLink ValuationLinkLinkLinkLinkLink Investment PhilosophyNANANALinkLink AccountingNANANALinkNA StatisticsNANANALinkNA Foundations of FinanceNANANALinkNA Corporate Life CycleNANANALinkLink

54 minutes 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
Worlds

Multi-agent simulations

3 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