• bitcoinBitcoin(BTC)$83,949.00-0.69%
  • ethereumEthereum(ETH)$2,689.690.02%
  • tetherTether(USDT)$1.000.01%
  • binancecoinBNB(BNB)$775.75-0.15%
  • rippleXRP(XRP)$1.571.86%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$121.833.72%
  • tronTRON(TRX)$0.337534-0.75%
  • zcashZcash(ZEC)$1,542.66-0.03%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.03-0.05%
  • HyperliquidHyperliquid(HYPE)$91.840.28%
  • dogecoinDogecoin(DOGE)$0.0990002.92%
  • moneroMonero(XMR)$556.91-2.19%
  • chainlinkChainlink(LINK)$13.984.60%
  • whitebitWhiteBIT Coin(WBT)$83.83-0.53%
  • cardanoCardano(ADA)$0.2594763.36%
  • USDSUSDS(USDS)$1.000.00%
  • leo-tokenLEO Token(LEO)$8.83-1.07%
  • RainRain(RAIN)$0.010973-8.80%
  • stellarStellar(XLM)$0.2203530.86%
  • bitcoin-cashBitcoin Cash(BCH)$343.541.38%
  • nearNEAR Protocol(NEAR)$4.937.77%
  • uniswapUniswap(UNI)$9.584.26%
  • litecoinLitecoin(LTC)$73.042.06%
  • CantonCanton(CC)$0.13146814.44%
  • Ethena USDeEthena USDe(USDE)$1.000.02%
  • suiSui(SUI)$1.1813.94%
  • avalanche-2Avalanche(AVAX)$10.795.11%
  • daiDai(DAI)$1.00-0.01%
  • USD1USD1(USD1)$1.000.03%
  • hedera-hashgraphHedera(HBAR)$0.0945261.49%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.452.97%
  • BitwayBitway(BTW)$1.3541.50%
  • BittensorBittensor(TAO)$313.225.33%
  • shiba-inuShiba Inu(SHIB)$0.0000062.76%
  • crypto-com-chainCronos(CRO)$0.0660562.48%
  • Global DollarGlobal Dollar(USDG)$1.000.01%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • MemeCoreMemeCore(M)$1.20-2.19%
  • EthenaEthena(ENA)$0.26522815.18%
  • tether-goldTether Gold(XAUT)$4,280.90-0.13%
  • OndoOndo(ONDO)$0.553.10%
  • okbOKB(OKB)$121.851.50%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • Circle USYCCircle USYC(USYC)$1.140.03%
  • aaveAave(AAVE)$154.825.73%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.12%
  • mantleMantle(MNT)$0.67-1.39%
  • polkadotPolkadot(DOT)$1.257.55%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

OpenAI has Released the ‘circuit-sparsity’: A Set of Open Tools for Connecting Weight Sparse Models and Dense Baselines through Activation Bridges

December 14, 2025
in AI & Technology
Reading Time: 13 mins read
A A
OpenAI has Released the ‘circuit-sparsity’: A Set of Open Tools for Connecting Weight Sparse Models and Dense Baselines through Activation Bridges
ShareShareShareShareShare

OpenAI team has released their openai/circuit-sparsity model on Hugging Face and the openai/circuit_sparsity toolkit on GitHub. The release packages the models and circuits from the paper ‘Weight-sparse transformers have interpretable circuits‘.

https://arxiv.org/pdf/2511.13653

What is a weight sparse transformer?

The models are GPT-2 style decoder only transformers trained on Python code. Sparsity is not added after training, it is enforced during optimization. After each AdamW step, the training loop keeps only the largest magnitude entries in every weight matrix and bias, including token embeddings, and zeros the rest. All matrices maintain the same fraction of nonzero elements.

YOU MAY ALSO LIKE

Liquid AI Releases LFM2.5-VL-3B-DSpark: Speculative Decoding for Vision-Language Models With Up to 3.13x Faster Decoding

How To Stop Meta Training Its AI Models On Your Smart Glasses’ Visual Data

The sparsest models have approximately 1 in 1000 nonzero weights. In addition, the OpenAI team enforced mild activation sparsity so that about 1 in 4 node activations are nonzero, covering residual reads, residual writes, attention channels and MLP neurons.

Sparsity is annealed during training. Models start dense, then the allowed nonzero budget gradually moves toward the target value. This design lets the research team scale width while holding the number of nonzero parameters fixed, and then study the capability interpretability tradeoff as they vary sparsity and model size. The research team show that, for a given pretraining loss, circuits recovered from sparse models are roughly 16 times smaller than those from dense models.

https://arxiv.org/pdf/2511.13653

So, what is a sparse circuit?

The central object in this research work is a sparse circuit. The research team defines nodes at a very fine granularity, each node is a single neuron, attention channel, residual read channel or residual write channel. An edge is a single nonzero entry in a weight matrix that connects two nodes. Circuit size is measured by the geometric mean number of edges across tasks.

To probe the models, the research team built 20 simple Python next token binary tasks. Each task forces the model to choose between 2 completions that differ in one token. Examples include:

  • single_double_quote, predict whether to close a string with a single or double quote
  • bracket_counting, decide between ] and ]] based on list nesting depth
  • set_or_string, track whether a variable was initialized as a set or a string

For each task, they prune the model to find the smallest circuit that still achieves a target loss of 0.15 on that task distribution. Pruning operates at the node level. Deleted nodes are mean ablated, their activations are frozen to the mean over the pretraining distribution. A learned binary mask per node is optimized with a straight through style surrogate so that the objective trades off task loss and circuit size.

OpenAI has Released the ‘circuit-sparsity’: A Set of Open Tools for Connecting Weight Sparse Models and Dense Baselines through Activation Bridges
https://arxiv.org/pdf/2511.13653

Example circuits, quote closing and counting brackets

The most compact example is the circuit for single_double_quote. Here the model must emit the correct closing quote type given an opening quote. The pruned circuit has 12 nodes and 9 edges.

The mechanism is two step. In layer 0.mlp, 2 neurons specialize:

  • a quote detector neuron that activates on both " and '
  • a quote type classifier neuron that is positive on " and negative on '

A later attention head in layer 10.attn uses the quote detector channel as a key and the quote type classifier channel as a value. The final token has a constant positive query, so the attention output copies the correct quote type into the last position and the model closes the string correctly.

https://arxiv.org/pdf/2511.13653

bracket_counting yields a slightly larger circuit but with a clear algorithm. The embedding of [ writes into several residual channels that act as bracket detectors. A value channel in a layer 2 attention head averages this detector activation over the context, effectively computing nesting depth and storing it in a residual channel. A later attention head thresholds this depth and activates a nested list close channel only when the list is nested, which leads the model to output ]].

A third circuit, for set_or_string_fixedvarname, shows how the model tracks the type of a variable called current. One head copies the embedding of current into the set() or "" token. A later head uses that embedding as query and key to copy the relevant information back when the model must choose between .add and +=.

https://arxiv.org/pdf/2511.13653
https://arxiv.org/pdf/2511.13653

Bridges, connecting sparse models to dense models

The research team also introduces bridges that connect a sparse model to an already trained dense model. Each bridge is an encoder decoder pair that maps dense activations into sparse activations and back once per sublayer. The encoder uses a linear map with an AbsTopK activation, the decoder is linear.

Training adds losses that encourage hybrid sparse dense forward passes to match the original dense model. This lets the research team perturb interpretable sparse features such as the quote type classifier channel and then map that perturbation into the dense model, changing its behavior in a controlled way.

https://arxiv.org/pdf/2511.13653

What Exactly has OpenAI Team released?

The OpenAI team as released openai/circuit-sparsity model on Hugging Face. This is a 0.4B parameter model tagged with custom_code, corresponding to csp_yolo2 in the research paper. The model is used for the qualitative results on bracket counting and variable binding. It is licensed under Apache 2.0.

Copy CodeCopiedUse a different Browser
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

if __name__ == "__main__":
    PROMPT = "def square_sum(xs):\n    return sum(x * x for x in xs)\n\nsquare_sum([1, 2, 3])\n"
    tok = AutoTokenizer.from_pretrained("openai/circuit-sparsity", trust_remote_code=True)
    model = AutoModelForCausalLM.from_pretrained(
        "openai/circuit-sparsity",
        trust_remote_code=True,
        torch_dtype="auto",
    )
    model.to("cuda" if torch.cuda.is_available() else "cpu")

    inputs = tok(PROMPT, return_tensors="pt", add_special_tokens=False)["input_ids"].to(
        model.device
    )
    with torch.no_grad():
        out = model.generate(
            inputs,
            max_new_tokens=64,
            do_sample=True,
            temperature=0.8,
            top_p=0.95,
            return_dict_in_generate=False,
        )

    print(tok.decode(out[0], skip_special_tokens=True))
``` :contentReference[oaicite:14]{index=14}  

Key Takeaways

  • Weight sparse training, not post hoc pruning: Circuit sparsity trains GPT-2 style decoder models with extreme weight sparsity enforced during optimization, most weights are zero so each neuron has only a few connections.
  • Small, task specific circuits with explicit nodes and edges: The research team defines circuits at the level of individual neurons, attention channels and residual channels, and recovers circuits that often have tens of nodes and few edges for 20 binary Python next token tasks.
  • Quote closing and type tracking are fully instantiated circuits: For tasks like single_double_quote, bracket_counting and set_or_string_fixedvarname, the research team isolate circuits that implement concrete algorithms for quote detection, bracket depth and variable type tracking, with the string closing circuit using 12 nodes and 9 edges.
  • Models and tooling on Hugging Face and GitHub: OpenAI released the 0.4B parameter openai/circuit-sparsity model on Hugging Face and the full openai/circuit_sparsity codebase on GitHub under Apache 2.0, including model checkpoints, task definitions and a circuit visualization UI.
  • Bridge mechanism to relate sparse and dense models: The work introduces encoder-decoder bridges that map between sparse and dense activations, which lets researchers transfer sparse feature interventions into standard dense transformers and study how interpretable circuits relate to real production scale models.

Check out the Paper and Model Weights. Feel free to check out our GitHub Page for Tutorials, Codes and Notebooks. Also, feel free to follow us on Twitter and don’t forget to join our 100k+ ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.

The post OpenAI has Released the ‘circuit-sparsity’: A Set of Open Tools for Connecting Weight Sparse Models and Dense Baselines through Activation Bridges appeared first on MarkTechPost.

Credit: Source link

ShareTweetSendSharePin

Related Posts

Liquid AI Releases LFM2.5-VL-3B-DSpark: Speculative Decoding for Vision-Language Models With Up to 3.13x Faster Decoding
AI & Technology

Liquid AI Releases LFM2.5-VL-3B-DSpark: Speculative Decoding for Vision-Language Models With Up to 3.13x Faster Decoding

September 25, 2026
How To Stop Meta Training Its AI Models On Your Smart Glasses’ Visual Data
AI & Technology

How To Stop Meta Training Its AI Models On Your Smart Glasses’ Visual Data

September 25, 2026
New Mexico Jury Rules Meta Misled State Residents About Data Privacy
AI & Technology

New Mexico Jury Rules Meta Misled State Residents About Data Privacy

September 25, 2026
Cricut’s New DIY Machines Let You Print And Cut Your Own Stickers
AI & Technology

Cricut’s New DIY Machines Let You Print And Cut Your Own Stickers

September 25, 2026
Next Post
United Airlines flight loses engine power after takeoff from Dulles Airport – The Washington Post

United Airlines flight loses engine power after takeoff from Dulles Airport - The Washington Post

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Supreme Court allows Trump’s mail-in ballot order to go into effect

Supreme Court allows Trump’s mail-in ballot order to go into effect

September 24, 2026
Tony Romo gets 3 new citations for impaired driving arrest

Tony Romo gets 3 new citations for impaired driving arrest

September 21, 2026
Elderly woman rescued after flooding devastates Nepal

Elderly woman rescued after flooding devastates Nepal

September 23, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!