arXiv

SharpNet: Enhancing MLPs to Represent Functions with Controlled Non-differentiability

Title: SharpNet: Empowering MLPs to Model Functions with Prescribed Non-differentiability

Abstract:

While Multi-layer perceptrons (MLPs) are widely utilized for function approximation and learning, their inherent nature limits them to generating globally smooth outputs. This characteristic makes it difficult for standard MLPs to represent continuous functions that possess specific, non-differentiable features (specifically, those requiring prescribed $C^0$ sharpness) without relying on ad hoc post-processing techniques. To address this limitation, we introduce SharpNet, an enhanced MLP architecture designed to incorporate user-defined sharp features. SharpNet achieves this by integrating an auxiliary feature function, which is derived as the solution to Poisson’s equation subject to jump Neumann boundary conditions. This auxiliary component is computed through an efficient local integral and remains fully differentiable concerning the positions of the features. Consequently, this design enables the simultaneous optimization of feature locations and MLP parameters to accurately reconstruct the target function or geometry. The proposed framework offers exact control over the placement of non-differentiability, ensuring the intended $C^0$ behavior at designated feature points while maintaining smoothness in all other regions. We evaluated SharpNet’s performance on both 2D tasks and 3D CAD reconstruction, benchmarking it against various state-of-the-art methods. In these experiments, SharpNet successfully reconstructed sharp edges and corners while preserving smoothness elsewhere, outperforming existing approaches that typically blur gradient discontinuities. Both qualitative assessments and quantitative metrics confirm the efficacy of our method. The project website, source code, and models are publicly accessible at https://sharpnettech.github.io.


Source: arXiv Generated at: 2026-06-04 00:00:00 UTC

Related Articles

China’s Robotaxi Dilemma Shows AI Policy Tension Between Growth and Jobs
Bloomberg

China’s Robotaxi Dilemma Shows AI Policy Tension Between Growth and Jobs

China’s robotaxi expansion highlights the policy tension between driving economic growth through AI and protecting emplo...

Exams watchdog warns of rise in high-tech cheating
BBC News

Exams watchdog warns of rise in high-tech cheating

Ofqual warns of rising high-tech cheating, with smart devices involved in 44% of misconduct cases. Invigilators are trai...

Thailand’s Richest Man Plans $4.3 Billion Expansion Amid AI Boom
Bloomberg

Thailand’s Richest Man Plans $4.3 Billion Expansion Amid AI Boom

Thailand’s wealthiest individual is investing $4.3 billion in expansion, capitalizing on the booming artificial intellig...

US Tech Sector Announces Most Job Cuts in Nearly Two Years
Bloomberg

US Tech Sector Announces Most Job Cuts in Nearly Two Years

The US tech sector recorded its highest wave of layoffs in nearly two years, signaling a significant downturn for the in...

Iran Says No Progress in US Talks | The Opening Trade 6/4/2026
Bloomberg

Iran Says No Progress in US Talks | The Opening Trade 6/4/2026

Iran reports no progress in US talks on June 4, 2026. The Opening Trade highlights the ongoing diplomatic impasse betwee...

The Do’s and Don’ts of Buying Used Tech Gadgets
New York Times

The Do’s and Don’ts of Buying Used Tech Gadgets

Refurbished tech offers a cost-effective alternative amid component shortages and inflated prices. This guide outlines e...