• bitcoinBitcoin(BTC)$61,603.001.39%
  • ethereumEthereum(ETH)$1,727.481.60%
  • tetherTether(USDT)$1.000.00%
  • binancecoinBNB(BNB)$563.071.98%
  • usd-coinUSDC(USDC)$1.000.01%
  • rippleXRP(XRP)$0.982.97%
  • solanaSolana(SOL)$73.333.41%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.070.00%
  • tronTRON(TRX)$0.3057850.77%
  • HyperliquidHyperliquid(HYPE)$65.666.88%
  • zcashZcash(ZEC)$755.852.12%
  • dogecoinDogecoin(DOGE)$0.0585233.24%
  • moneroMonero(XMR)$446.75-14.99%
  • leo-tokenLEO Token(LEO)$9.060.84%
  • whitebitWhiteBIT Coin(WBT)$62.093.60%
  • chainlinkChainlink(LINK)$9.543.29%
  • USDSUSDS(USDS)$1.000.02%
  • cardanoCardano(ADA)$0.1523332.58%
  • Ethena USDeEthena USDe(USDE)$1.00-0.02%
  • stellarStellar(XLM)$0.1299061.52%
  • daiDai(DAI)$1.00-0.01%
  • bitcoin-cashBitcoin Cash(BCH)$211.561.99%
  • nearNEAR Protocol(NEAR)$3.121.15%
  • litecoinLitecoin(LTC)$44.432.04%
  • CantonCanton(CC)$0.075778-5.28%
  • avalanche-2Avalanche(AVAX)$6.791.95%
  • uniswapUniswap(UNI)$4.882.74%
  • tether-goldTether Gold(XAUT)$3,661.482.95%
  • USD1USD1(USD1)$1.000.02%
  • suiSui(SUI)$0.693.05%
  • the-open-networkGram (prev. Toncoin)(GRAM)$0.992.22%
  • Ripple USDRipple USD(RLUSD)$1.000.02%
  • Global DollarGlobal Dollar(USDG)$1.000.01%
  • hedera-hashgraphHedera(HBAR)$0.0555183.26%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.09%
  • paypal-usdPayPal USD(PYUSD)$1.000.03%
  • BittensorBittensor(TAO)$187.921.84%
  • quant-networkQuant(QNT)$150.400.69%
  • shiba-inuShiba Inu(SHIB)$0.0000042.05%
  • Circle USYCCircle USYC(USYC)$1.150.00%
  • Spiko Amundi Overnight Swap Fund (EUR)Spiko Amundi Overnight Swap Fund (EUR)(EURSAFO)$1.12-0.09%
  • crypto-com-chainCronos(CRO)$0.0402861.19%
  • MemeCoreMemeCore(M)$0.84-1.52%
  • okbOKB(OKB)$84.122.51%
  • RainRain(RAIN)$0.002407-5.05%
  • Falcon USDFalcon USD(USDF)$1.000.01%
  • pax-goldPAX Gold(PAXG)$3,658.022.88%
  • United StablesUnited Stables(U)$1.000.05%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • pepePepe(PEPE)$0.0000041.99%
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

Meet SymTorch: A PyTorch Library that Translates Deep Learning Models into Human-Readable Equations

March 3, 2026
in AI & Technology
Reading Time: 5 mins read
A A
Meet SymTorch: A PyTorch Library that Translates Deep Learning Models into Human-Readable Equations
ShareShareShareShareShare

Can symbolic regression be the key to transforming opaque deep learning models into interpretable, closed-form mathematical equations? or Say you have trained your deep learning model. It works. But do you know what it has actually learned? A team of University of Cambridge researchers propose ‘SymTorch’, a library designed to integrate symbolic regression (SR) into deep learning workflows. It enables researchers to approximate neural network components with closed-form mathematical expressions, facilitating functional interpretability and potential inference acceleration.

https://arxiv.org/pdf/2602.21307

Core Mechanism: The Wrap-Distill-Switch Workflow

SymTorch simplifies the engineering required to extract symbolic equations from trained models by automating data movement and hook management.

YOU MAY ALSO LIKE

NEURA Robotics Plans Aragón Physical AI Gym and Model Zone – Unite.AI

Tencent Open-Sources DFly2: Speculative Decoding That Reuses the Target’s Sparse KV Cache

  • Wrap: Users apply the SymbolicModel wrapper to any nn.Module or callable function.
  • Distill: The library registers forward hooks to record input and output activations during a forward pass. These are cached and transferred from the GPU to the CPU for symbolic regression via PySR.
  • Switch: Once distilled, the original neural weights can be replaced with the discovered equation in the forward pass using switch_to_symbolic.

The library interfaces with PySR, which uses a multi-population genetic algorithm to find equations that balance accuracy and complexity on a Pareto front. The ‘best’ equation is chosen by maximizing the fractional drop in log mean absolute error relative to an increase in complexity.

Case Study: Accelerating LLM Inference

A primary application explored in this research is replacing Multi-Layer Perceptron (MLP) layers in Transformer models with symbolic surrogates to improve throughput.

Implementation Details

Due to the high dimensionality of LLM activations, the research team employed Principal Component Analysis (PCA) to compress inputs and outputs before performing SR. For the Qwen2.5-1.5B model, they selected 32 principal components for inputs and 8 for outputs across three targeted layers.

Performance Trade-offs

The intervention resulted in an 8.3% increase in token throughput. However, this gain came with a non-trivial increase in perplexity, primarily driven by the PCA dimensionality reduction rather than the symbolic approximation itself.

Metric Baseline (Qwen2.5-1.5B) Symbolic Surrogate
Perplexity (Wikitext-2) 10.62 13.76
Throughput (tokens/s) 4878.82 5281.42
Avg. Latency (ms) 209.89 193.89

GNNs and PINNs

SymTorch was validated on its ability to recover known physical laws from latent representations in scientific models.

  • Graph Neural Networks (GNNs): By training a GNN on particle dynamics, the research team used SymTorch to recover empirical force laws, such as gravity (1/r2) and spring forces, directly from the edge messages.
  • Physics-Informed Neural Networks (PINNs): The library successfully distilled the 1-D heat equation’s analytic solution from a trained PINN. The PINN’s inductive bias allowed it to achieve a Mean Squared Error (MSE) of 7.40 x 10-6.
  • LLM Arithmetic Analysis: Symbolic distillation was used to inspect how models like Llama-3.2-1B perform 3-digit addition and multiplication. The distilled equations revealed that while the models are often correct, they rely on internal heuristics that include systematic numerical errors.

Key Takeaways

  • Automated Symbolic Distillation: SymTorch is a library that automates the process of replacing complex neural network components with interpretable, closed-form mathematical equations by wrapping components and collecting their input-output behavior.
  • Engineering Barrier Removal: The library handles critical engineering challenges that previously hindered the adoption of symbolic regression, including GPU-CPU data transfer, input-output caching, and seamless switching between neural and symbolic forward passes.
  • LLM Inference Acceleration: A proof-of-concept demonstrated that replacing MLP layers in a transformer model with symbolic surrogates achieved an 8.3% throughput improvement, though with some performance degradation in perplexity.
  • Scientific Law Discovery: SymTorch was successfully used to recover physical laws from Graph Neural Networks (GNNs) and analytic solutions to the 1-D heat equation from Physics-Informed Neural Networks (PINNs).
  • Functional Interpretability of LLMs: By distilling the end-to-end behavior of LLMs, researchers could inspect the explicit mathematical heuristics used for tasks like arithmetic, revealing where internal logic deviates from exact operations.

Check out the Paper, Repo and Project Page. Also, feel free to follow us on Twitter and don’t forget to join our 120k+ ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.

The post Meet SymTorch: A PyTorch Library that Translates Deep Learning Models into Human-Readable Equations appeared first on MarkTechPost.

Credit: Source link

ShareTweetSendSharePin

Related Posts

NEURA Robotics Plans Aragón Physical AI Gym and Model Zone – Unite.AI
AI & Technology

NEURA Robotics Plans Aragón Physical AI Gym and Model Zone – Unite.AI

November 27, 2026
Tencent Open-Sources DFly2: Speculative Decoding That Reuses the Target’s Sparse KV Cache
AI & Technology

Tencent Open-Sources DFly2: Speculative Decoding That Reuses the Target’s Sparse KV Cache

November 27, 2026
Backloggd Urges Users To Change Their Passwords After A Breach
AI & Technology

Backloggd Urges Users To Change Their Passwords After A Breach

November 26, 2026
1Password Says It Was Hacked But Users’ Vaults Are Safe
AI & Technology

1Password Says It Was Hacked But Users’ Vaults Are Safe

November 26, 2026
Next Post
Meta signs a multimillion dollar AI licensing deal with News Corp

Meta signs a multimillion dollar AI licensing deal with News Corp

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Outrage over ICE arrest at Seattle-Tacoma airport

Outrage over ICE arrest at Seattle-Tacoma airport

November 24, 2026
Virginia school district closes after finding more than 500 staff weren’t screened for child abuse

Virginia school district closes after finding more than 500 staff weren’t screened for child abuse

November 27, 2026
President Trump blames Democrats for stock market losses while claiming credit for lower oil prices

President Trump blames Democrats for stock market losses while claiming credit for lower oil prices

November 26, 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!