ReadingResearchRadarInvestment framework
Sign in / Sign up
AllTechnologyProductsInvestingPublic marketsOther

Reading

2026-11-092 posts

Refresh

Mathematical Framework for Transformer Circuits: Residual Stream and Induction Head Mechanisms

Verified 2026-11-09 00:07 GMT+8

Long-term reading · 《A Mathematical Framework for Transformer Circuits》(2021)

The 2021 paper "A Mathematical Framework for Transformer Circuits" was written by the Anthropic team. It aims to reverse-engineer Transformer models using mechanistic interpretability methods. The authors compare this process to a programmer decompiling complex binary files into human-readable source code, attempting to understand the specific computational logic within the model.

To simplify analysis, the research focuses on "attention-only" toy models, excluding complex components such as MLP layers and layer normalization. This simplification allows researchers to clearly observe interaction patterns between attention heads, although the authors acknowledge this is one of the main weaknesses of the current work, as real large models contain numerous non-linear MLP structures.

One core concept is the "residual stream." In Transformers, each layer reads information from the residual stream via linear projections and adds the results back into the residual stream. The authors emphasize that the residual stream has a profound linear structure and can be viewed as a communication channel where all components read from and write to different subspaces. This perspective allows us to decompose the model into end-to-end interpretable functions, making it easier to reason about model behavior.

Another key finding is "induction heads." Research shows that single-layer attention models can only implement simple bigram or skip-trigram patterns, while models with two or more layers can form more complex algorithms through combinations of attention heads. Specifically, induction heads appear only in models with at least two layers of attention. They can explain the phenomenon of in-context learning in small models, i.e., how the model predicts subsequent content based on preceding prompts.

For modern AI developers, understanding these fundamental mechanisms helps in debugging model behavior. For example, when a model exhibits unexpected copying behavior, one can detect whether it is performing some form of "copying" by analyzing the eigenvalues of OV circuits. Although this framework currently applies mainly to small models, it provides preliminary mathematical tools and intuition for understanding larger, more realistic models, particularly in identifying safety issues and anomalous behaviors.

Engineers engaged in large model safety and interpretability research are advised to read "A Mathematical Framework for Transformer Circuits" (2021). Starting with the linear structure of the residual stream and the formation conditions of induction heads, they can build an intuitive understanding of the internal mechanisms of Transformers.

Sources:《A Mathematical Framework for Transformer Circuits》(2021)

Research

"The Cost of Capital, Corporation Finance and the Theory of Investment": A Standard for Maximizing Market Value Under Uncertainty

Verified 2026-11-09 00:07 GMT+8

Long-term reading · 《The Cost of Capital, Corporation Finance and the Theory of Investment》(1958)

In 1958, Franco Modigliani and Merton H. Miller published this groundbreaking paper, challenging conventional views on capital costs and corporate finance at the time. Prior to this, economists often assumed that asset returns were certain, thereby simplifying the cost of capital to bond interest rates. However, the real world is full of uncertainty, and the traditional standard of "profit maximization" becomes difficult to operate in an uncertain environment because each decision corresponds to a distribution of possible outcomes rather than a single value.

The core mechanism proposed by the paper is a shift toward "market value maximization." The authors point out that under conditions of uncertainty, any investment project and its financing plan only need to pass one test: Will the project increase the market value of the company's stock? If the answer is yes, it is worth undertaking; otherwise, its return is below the company's marginal cost of capital. This standard is independent of the current owner's personal preferences because market prices reflect the preferences of all potential owners. Even if existing shareholders disagree with management's valuation, they can sell their shares and reinvest, yet still benefit from the capital appreciation brought about by management's decisions. This definition based on market value provides an operational concept of the cost of capital, resolving the normative and analytical defects of subjective utility approaches.

Furthermore, the paper explores the relationship between capital structure and firm value. Under a series of strict assumptions (such as atomistic competition and easy access to capital markets), the authors argue that a company's market value is unrelated to its capital structure. This means that simply changing the proportion of debt to equity will not change the total value of the company or its weighted average cost of capital. Although these assumptions do not fully hold in reality, this theoretical framework forces managers to focus on the profitability of the assets themselves, rather than merely manipulating financial statements through financial engineering. It reveals why, in some cases, increasing debt does not lower the overall cost of capital, but depends on whether the project itself can enhance market value.

For today's readers, understanding this theory helps answer a common investment puzzle: When a company announces a large-scale stock buyback or issues new debt, does this mean its intrinsic value has changed? According to the MM theory, in a frictionless perfect market, such financial restructuring does not create value on its own; value creation stems from improvements in operational efficiency. For example, suppose a mature technology company announces borrowing money to repurchase shares. Investors should first examine whether its cash flow generation capability has improved, rather than focusing solely on changes in leverage. If operations remain unchanged, fluctuations in the stock price more likely reflect market sentiment or short-term liquidity needs rather than fundamental shifts in the business. This perspective helps investors distinguish between "financial tricks" and "real value creation."

Sources:《The Cost of Capital, Corporation Finance and the Theory of Investment》(1958)

Research

You’re all caught up in this view

Sign in / Sign up
ReadingResearchRadarInvestment framework

Recommended reading: "The Cost of Capital, Corporation Finance and the Theory of Investment," published in 1958. Suitable for investors and managers who wish to deepen their understanding of the foundations of modern corporate finance and evaluate the impact of corporate financing decisions on long-term value. It is recommended to start with the introduction, focusing on discussions regarding decision-making standards under uncertainty, as well as the logical derivation of capital structure irrelevance in subsequent sections.