Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

Model Carving Theory and Applications

Updated 26 November 2026
  • Model carving is a family of procedures that selectively reduce larger structures, applicable across various domains such as neural networks, 3D vision, and conceptual modeling, ensuring task relevance and structure integrity.
  • Key applications of model carving include selective extraction in vision foundation models, 3D point-cloud completion, and rotational video inference acceleration. The technique uses metrics such as computational costs, geometrical accuracy, and inference speed, measuring criteria where even minor losses lead to larger reductions in performance.
  • The principal challenges involve optimizing the selection and preservation, maintaining now only the caricatured objects, and ensuring the system reliably identifies what can be discarded and reconstructs the task-appropriate structures from the remainder.

Model carving is a family of procedures that constructs a more specific representation by selectively removing, separating, or suppressing parts of a larger structure. The term has several technically distinct uses: conceptual modeling treats carving as selecting meaningful structural and event boundaries; neural-network research uses it for extracting task-specific subnetworks or learning a model’s topology during training; 3D vision uses it for separating objects, removing geometric regions, or filtering candidate point sets; and computational inference uses it for eliminating attention interactions and redundant computation. Across these uses, the common principle is selective reduction guided by structure, content, recoverability, or task relevance rather than indiscriminate removal.

1. Conceptual foundations and terminology

The conceptual interpretation of Model Carving derives from the idea of “carving nature at its joints.” It treats modeling as the selection of boundaries, units, relationships, transformations, and events that constitute a representation of a domain. A model can use a coarse grain, such as a transportation system, or a fine grain that distinguishes stations, transfers, passenger movements, and arrival events. The quality of the carving depends on whether the selected divisions track meaningful structures rather than cutting through a unity or introducing divisions without explanatory value (Al-Fedaghi, 19 May 2025).

Within the Thinging Machine framework, a thing is anything that can participate in five generic actions: create, process, release, transfer, and receive. A machine is an action-capable structure, while a thimac unifies the thing and machine aspects. A region is the static representation of a thimac or TM subdiagram, and an event is a region infused with time:

Event=Region+Time.\text{Event}=\text{Region}+\text{Time}.

The framework distinguishes two forms of conceptual carving. Structural carving identifies things, subthings, attributes, relationships, and relatively stable boundaries. Dynamic or event carving identifies bounded happenings and processes, such as going, leaving, arriving, receiving, transforming, and creating. The five generic actions provide the lowest-level vocabulary for both forms:

{create,process,release,transfer,receive}.\{\text{create},\text{process},\text{release},\text{transfer},\text{receive}\}.

A central unresolved issue is how to determine which combinations of primitive actions constitute natural events. Treating every create, process, release, transfer, and receive operation as a separate event would produce an excessively fragmented model. The framework therefore leaves event boundaries as a modeling decision and does not provide a complete algorithm for identifying them (Al-Fedaghi, 19 May 2025).

In computational research, the term has acquired a more operational meaning. A structure is carved when components are removed while retaining a useful residual representation. The removed components may be model parameters, Transformer sublayers, attention edges, visual tokens, candidate 3D points, geometric mesh regions, or object-specific portions of an implicit field. The resulting object may be a smaller dense model, a separated mesh, a completed point cloud, or a computationally cheaper inference graph.

2. Model carving in neural-network compression

2.1 Task-specific extraction from vision foundation models

Carve VFM formulates model carving as task-specific extraction from a frozen vision foundation model. Given a pretrained VFM, a labeled calibration set, and a dense parameter budget, it searches for a smaller subnetwork and repairs the behavior of removed components through closed-form low-rank corrections (Mecharbat et al., 12 Oct 2026).

The resulting model is an ordinary smaller dense Transformer. It is not a masked sparse model, dynamically routed model, adapter-augmented model, or low-rank branch retained at inference. MLP channels, attention heads, and attention coordinates are physically removed by slicing tensors and matching producer–consumer dimensions. For an MLP, the retained hidden-channel set narrows both the up- and down-projections. For attention, the corresponding query, key, value, and output dimensions are sliced consistently.

Two attention-carving operators are used:

  • Head carving removes complete attention heads.
  • Column carving retains all heads while removing matched coordinates within them; query/key coordinates are paired, as are value/output coordinates.

The method allocates capacity independently across layers. Each layer receives MLP and attention retention ratios and an attention operator choice. This permits heterogeneous architectures rather than a uniform global compression ratio. The reported allocation patterns preserve more early-layer MLP capacity for texture, scene, and fine-grained tasks, while medical tasks exhibit allocations closer to uniform. Most savings arise from MLP reduction, whereas attention is compressed more conservatively (Mecharbat et al., 12 Oct 2026).

2.2 Recovery-aware selection

Carve VFM argues that importance and recoverability must be evaluated jointly. A removed activation group may have substantial isolated importance but still be predictable from surviving coordinates. Conversely, a group with modest isolated importance may be difficult to reconstruct after removal.

For a removable coordinate group I\mathcal I, downstream weight matrix WW, and regularized Gram matrix

G=Z⊤Zn+λI,G=\frac{Z^\top Z}{n}+\lambda I,

the conditional-recovery damage is

d(I)=tr⁡ ⁣(W:I[GII−1]−1W:I⊤).d(\mathcal I)=\operatorname{tr}\!\left( W_{:\mathcal I} \left[G^{-1}_{\mathcal I\mathcal I}\right]^{-1} W_{:\mathcal I}^{\top} \right).

The procedure removes groups iteratively, refits surviving weights, updates G−1G^{-1} through Schur-complement updates, and records cumulative removal curves Elo(k)E_l^o(k) for each layer and attention operator. Candidate architectures are initially ranked using the recovery-aware local score

Qlocal(a)=−∑lElol(kl).\mathcal Q_{\mathrm{local}}(\mathbf a) = -\sum_l E_l^{o_l}(k_l).

Because this score is additive and local, Carve VFM periodically audits candidates using held-out task performance. A regularized linear probe is fitted on stratified calibration splits, and the resulting cross-validated accuracy becomes the global fitness. The search switches from local to global fitness when rank agreement falls below a Spearman correlation threshold of $0.35$ or held-out regret exceeds $0.03$ (Mecharbat et al., 12 Oct 2026).

2.3 Closed-form repair

After selecting an architecture, removed contributions are reconstructed from surviving activations. If S\mathcal S denotes retained coordinates and I\mathcal I removed coordinates, the lost contribution is

YI=ZIWI⊤.Y_{\mathcal I}=Z_{\mathcal I}W_{\mathcal I}^{\top}.

A ridge-regression correction is obtained from

ΔW⋆=arg⁡min⁡ΔW∥ZS(ΔW)⊤−YI∥F2+λ∥ΔW∥F2,\Delta W^\star = \arg\min_{\Delta W} \left\| Z_{\mathcal S}(\Delta W)^\top-Y_{\mathcal I} \right\|_F^2 + \lambda\|\Delta W\|_F^2,

with solution

ΔW⋆=YI⊤ZS(ZS⊤ZS+λI)−1.\Delta W^\star = Y_{\mathcal I}^{\top}Z_{\mathcal S} \left( Z_{\mathcal S}^{\top}Z_{\mathcal S} + \lambda I \right)^{-1}.

The correction is truncated to rank rr and merged into the surviving dense weight:

Wmerged=WS+ΔWr.W_{\mathrm{merged}} = W_{\mathcal S}+\Delta W_r.

The low-rank form is used only during repair. After merging, inference executes a single smaller dense matrix. The method uses λ=10−4\lambda=10^{-4}, with repair rank $128$ for smaller DINOv3 models and $256$ for MetaCLIP-2 ViT-B and DINOv3 ViT-L. Q/K projection repair requires special treatment because attention logits depend bilinearly on query and key representations (Mecharbat et al., 12 Oct 2026).

2.4 Joint topology and weight learning

A distinct approach, also titled “Model Carving,” learns Transformer topology during pretraining rather than compressing a completed model. Each attention or MLP sublayer receives a nonnegative scalar gate gug_u, initialized to $0.1$. Its residual contribution is

z←z+gurms⁡(z)rms⁡(yu)yu.\mathbf z \leftarrow \mathbf z+ g_u \frac{\operatorname{rms}(\mathbf z)} {\operatorname{rms}(\mathbf y_u)} \mathbf y_u.

The RMS factor makes the gate control the relative magnitude of the sublayer write. A gate reaching exactly zero suppresses the sublayer and permits its removal from the execution graph. Gates are placed on whole sublayer applications, not on individual heads, MLP dimensions, or parameters (Zheng et al., 20 Nov 2026).

The method also introduces learned cross-layer connections. If hk\mathbf h_k is the output of layer kk and xj\mathbf x_j are earlier outputs, the model adds normalized combinations of earlier representations using coefficients ckjc_{kj} constrained by

∥ck∥1≤1.\|\mathbf c_k\|_1\leq 1.

These connections allow later surviving layers to reuse earlier representations and form a heterogeneous topology.

The compute-aware pressure assigned to a sublayer is

πu(t)=v(T)ln⁡ ⁣(1+ρtϕu1−ϕu),\pi_u(t) = v(T) \ln\!\left( 1+\rho_t\frac{\phi_u}{1-\phi_u} \right),

where v(T)v(T) is the predicted rate of loss improvement with additional tokens, ρt\rho_t is the remaining-token fraction, and ϕu\phi_u is the sublayer’s share of training FLOPs per token. Pressure is greater for expensive sublayers, earlier removals, and periods when additional training tokens have higher value.

A logarithmic penalty provides a differentiable surrogate for the discrete cost of retaining a sublayer:

P(gu)=πuln⁡20ln⁡gu.P(g_u)=\frac{\pi_u}{\ln 20}\ln g_u.

The gate update combines the ordinary Adam step with the derivative of this pressure term. Zero-gate sublayers are periodically removed from a compiled graph. The final model is static: it does not use token-dependent routing or inference-time masks.

The experiments cover standard Transformers from 140M to 2.7B parameters and looped Transformers from 140M to 1.3B. At equal training compute, carved models achieve lower validation loss than dense baselines while using up to 34% fewer FLOPs per token. Decoding speed improves by up to 1.61×1.61\times at the largest tested batch. The learned topologies remove attention and MLP sublayers independently, and looped Transformers can have different topologies in different loops despite sharing weights (Zheng et al., 20 Nov 2026).

3. Representation carving in visual learning

3.1 Weakly supervised visual attributes

Deep-Carving addresses a different problem: discovering multiple visual attributes when each training image has only one observed label, although it may contain several attributes. The desired test output is the complete attribute set, while omitted training labels are unknown rather than negative (Shankar et al., 2015).

A standard softmax classifier is mismatched because it forces competing probability mass into one class. Deep-Carving instead uses sigmoid cross-entropy, allowing each attribute to receive an independent probability. Initial weak labels use $0.95$ for the observed attribute and $0.05$ for other attributes, where the low value indicates uncertainty rather than confirmed absence.

The method begins with approximately 60 epochs of ordinary weakly supervised training. It then analyzes convolutional feature maps. For feature map ff and image xr\boldsymbol{x}_r, the average spatial response is

vfr=1∣Ωf∣∑u∈ΩfFf(xr,u).v_f^r = \frac{1}{|\Omega_f|} \sum_{u\in\Omega_f} F_f(\boldsymbol{x}_r,u).

For attribute ama_m, the class-specific response threshold is the average response over images whose observed label is ama_m:

hfm=1Nm∑xr∈Xmwrm.h_f^m = \frac{1}{N_m} \sum_{\boldsymbol{x}_r\in\boldsymbol X_m} w_r^m.

A missing attribute receives an intermediate pseudo-label when the image response lies between γhfm\gamma h_f^m and hfmh_f^m, with γ=0.7\gamma=0.7. Responses outside that interval receive $0.05$, while the original observed label is assigned $0.95$. Scores are averaged across feature maps to form pseudo-label probabilities, and the network is retrained with those targets. Pseudo-label generation is repeated every five epochs.

The operation is called carving because it selectively exposes and reinforces latent attribute evidence already present in the convolutional maps. It does not remove neurons or filters. The resulting subnetworks are informal groups of feature maps that become preferentially associated with attributes; there is no explicit hard partition (Shankar et al., 2015).

3.2 Point-block carving for 3D completion

CarveNet formulates point-cloud completion as removal from a sufficiently large candidate point set. Given a partial point cloud, it constructs a 3D block containing the observed points and uniformly distributed add-in points. The network removes candidate points judged inconsistent with the complete shape and retains points that could belong to it (Guo et al., 2021).

The point-level operation is expressed as

C(pi)=∑pj∈N(pi)wi(pj−pi)fj.\mathcal C(\mathbf p_i) = \sum_{\mathbf p_j\in\mathcal N(\mathbf p_i)} w_i(\mathbf p_j-\mathbf p_i)f_j.

The learned point-specific kernel is called a “graver.” In the implementation, the block is represented by interpolated 64364^3 grids. A 3D U-Net predicts a distinct K×K×KK\times K\times K kernel for each grid cell, producing spatially varying exclusive convolution rather than a single shared 3D kernel.

The retained coarse points are refined by an MLP that predicts offsets. The coarse and offset-updated points are merged into the final completion. Training uses Chamfer distance for both coarse and refined outputs, together with a SensorAug consistency loss generated from virtual LiDAR-like viewpoints. On ShapeNet, CarveNet reports an average Chamfer distance of 0.3833×10−30.3833\times 10^{-3} and outperforms the compared methods on seven of eight categories. On KITTI, it reports temporal consistency of 0.1745×10−30.1745\times10^{-3} (Guo et al., 2021).

3.3 Object separation through SDF carving

ObjectCarver separates objects in posed multi-view scenes from a small number of user clicks in one view. It first reconstructs a complete scene as a NeuS signed-distance field, uses SAM for click-prompted segmentation, backprojects labeled points into 3D, propagates object identities across views, and then jointly optimizes one SDF per object (Hassena et al., 2024).

Each object SDF is initialized from the full-scene SDF rather than from an independent primitive. Optimization therefore starts with detailed scene geometry and removes portions belonging to other objects. The process is called carving because object-specific fields are carved out of a shared scene representation.

A naive mask loss incorrectly treats occluded object regions as background and can carve away valid hidden geometry. Ignoring all occluded pixels avoids this failure but allows floaters and hollow shells. ObjectCarver introduces a compactness loss based on amodal bounding regions. Geometry is allowed behind occluders when it lies inside an object’s supported projected extent, while unsupported regions remain constrained.

The final objective combines color, Eikonal, compactness, and overlap terms:

L=Lcolor+λLeik+βLcompactness+γLoverlap.L = L_{\mathrm{color}} + \lambda L_{\mathrm{eik}} + \beta L_{\mathrm{compactness}} + \gamma L_{\mathrm{overlap}}.

The optimized zero level sets are extracted as meshes. On the reported synthetic benchmark, ObjectCarver achieves Chamfer distance $0.010$, precision ratio $0.960$, and completion ratio $0.991. On the real subset, it achieves Chamfer distance$0.015,precisionratio, precision ratio0.921,andcompletionratio, and completion ratio0.927$ (Hassena et al., 2024).

3.4 Mesh carving and surface sculpting

Image Sculpting converts a segmented 2D object into a reconstructed textured 3D mesh and performs carving through a mold. The overlap between the object mesh and mold is excised, producing a Boolean-like subtraction:

Mcarved≈Mobject∖Mmold.M_{\mathrm{carved}} \approx M_{\mathrm{object}}\setminus M_{\mathrm{mold}}.

The paper’s example presses a moon-and-star-shaped mold into a pumpkin. The exact Boolean algorithm, remeshing procedure, cutter representation, and texture treatment of newly exposed surfaces are not specified. After carving, the mesh is rendered with RGB and depth, and diffusion-based enhancement uses DreamBooth, SDXL, depth ControlNet, DDIM inversion, and feature and self-attention injection (Yenphraphai et al., 2024).

SuperCarver addresses a related but inverse operation: it adds texture-consistent high-frequency geometry to a coarse textured mesh. A deterministic normal-diffusion model predicts detailed normal maps from RGB, depth, and coarse-normal renderings. A distance-field deformation stage then moves grid samples while keeping signed-distance values fixed:

Gu=G+τtanh⁡(O),\mathcal G^u = \mathcal G+\tau\tanh(\mathcal O),

with r=512r=512 and τ=0.5\tau=0.5. Differentiable Dual Marching Cubes extracts the updated mesh, whose rendered normals are optimized against predicted normals from multiple views. The method is therefore a learned sculpting or detail-carving procedure that retains the coarse mesh structure while adding actual geometric relief (Zhang et al., 12 Mar 2025).

4. Volumetric and geometric seam carving

Efficient 3D Seam Carving adapts image seam carving to voxelized 3D shapes. In two-dimensional images, a seam is a connected path; in 3D, a seam is a two-dimensional sheet of voxels. The method operates on occupancy grids, signed-distance fields, and truncated signed-distance fields rather than directly on triangle meshes (Chen et al., 2024).

For a seam cutting along the zz axis,

sz={(i,j,z(i,j))}i,j,\mathbf s^z = \{(i,j,z(i,j))\}_{i,j},

with neighboring values constrained by

∣z(i,j)−z(i−1,j)∣≤1,∣z(i,j)−z(i,j−1)∣≤1.|z(i,j)-z(i-1,j)|\leq 1, \qquad |z(i,j)-z(i,j-1)|\leq 1.

The directional energy is

ez(G)=∣∂∂zG∣.e_z(\mathbf G) = \left| \frac{\partial}{\partial z}\mathbf G \right|.

Low directional gradients identify regions that may be lengthened or shortened with relatively little semantic disruption. E3SC restricts anchors to occupied low-energy cells, uses mini-batch kk-means to diversify anchor selection, and performs a hierarchical 2D-to-3D beam search. Candidate paths are retained not only by cost but also by spatial diversity, reducing repeated selection of equivalent seams in flat voxel regions.

The method inserts or removes seam sheets to produce nonuniform, part-specific deformation. It includes symmetry checks, seam-energy filtering, and a maximum resizing range. The method improves generated-shape metrics particularly for categories with limited training data, including beds, towers, and cameras. It does not provide a formal topology-preservation or mesh-quality guarantee, and failures occur when voxel gradients do not correspond to plausible deformation directions (Chen et al., 2024).

A computational-geometry formulation studies whether a triangulated 3D polytope can be extracted from arbitrary surrounding material using prescribed cuts. For half-plane cuts, a polytope is carveable if each facial triangle has a half-plane in its supporting plane that contains the triangle while avoiding the polytope interior. The paper provides a deterministic O(n2)O(n^2) decision and construction algorithm and a randomized expected O(n3/2+ε)O(n^{3/2+\varepsilon}) algorithm. For bounded sweeps of infinite rays, it gives an O(n5)O(n^5) algorithm (Robson et al., 2024).

These results concern feasibility and construction of cut descriptions rather than material-removal minimization or complete machine scheduling. They model geometric certificates, not saw thickness, collision avoidance, fixturing, kerf compensation, tool ordering, or device-specific kinematics.

5. Runtime and inference carving

Jenga applies carving to video diffusion inference without retraining the underlying model. It removes low-relevance attention edges, reduces active visual-token counts through progressive resolution, and reduces diffusion evaluations through timestep selection and feature reuse (Zhang et al., 22 May 2025).

The central mechanism, Dynamic Attention Carving, reorders visual tokens with a generalized three-dimensional Hilbert or space-filling curve. Tokens are partitioned into blocks of size m=128m=128. A block-level relevance matrix is computed from mean-pooled queries and keys, and only selected query-key block pairs are evaluated with dense attention inside each pair.

The final block mask is the union of:

  • a relevance mask that retains top-ranked blocks subject to a cumulative probability cutoff;
  • a condition mask that preserves text and other conditioning interactions;
  • an adjacency mask that preserves local temporal-spatial neighborhoods.

The selected attention graph changes the complexity from O(N2)O(N^2) to approximately O(N′N)O(N'N), where N′N' is the average number of selected key-value tokens per query. The model weights and Transformer layers remain unchanged, and no runtime router is introduced.

Progressive Resolution processes early denoising stages at lower spatial resolution and increases resolution later. A clean latent is estimated, upsampled with 3D area interpolation, and re-noised before the next stage. The main configuration uses 540P followed by 720P, while a three-stage variant uses 360P, 540P, and 720P.

For HunyuanVideo, the reported Jenga-Flash configuration achieves an 8.83×8.83\times DiT-time speedup with a VBench score of 82.73%82.73\%, compared with 82.74%82.74\% for the baseline. The method generalizes to HunyuanVideo-I2V, Wan2.1 1.3B, and AccVideo. Its limitations include static block partitioning, latent-alignment errors during resolution changes, boundary artifacts, and quality degradation under overly aggressive sparsity (Zhang et al., 22 May 2025).

This runtime interpretation differs from structural model carving. Jenga does not delete model parameters or permanently extract a smaller network. It carves the computation performed during particular inference steps by suppressing attention edges, reducing token counts, and reusing intermediate features.

6. Boundaries, applications, and unresolved issues

Model carving is not a single algorithm or a single technical field. Its uses differ according to the object being carved:

Domain Carved object Main preservation criterion
Conceptual modeling Structures, relationships, and events Meaningful ontological or process boundaries
VFM compression Channels, heads, and projection dimensions Task accuracy and recoverability
Topology learning Attention and MLP sublayers Loss reduction per compute
3D vision Points, SDF regions, mesh regions Geometric consistency and object identity
3D augmentation Voxel seam sheets Content-aware local deformation
Video inference Attention edges and visual tokens Generation quality under lower compute

Several misconceptions should be avoided. Deep-Carving does not physically remove CNN filters; it generates additional pseudo-supervision. CarveNet does not edit a mesh interactively; it filters a candidate point block. ObjectCarver does not perform a Boolean mesh subtraction; it optimizes object-specific SDFs. Image Sculpting does use mold-based geometric removal, but the Boolean and remeshing details are unspecified. Jenga does not prune Transformer weights; it removes runtime attention interactions and changes latent resolution. Carve VFM does produce a physically smaller dense model, whereas the training-time Model Carving method learns a static topology while weights are being trained.

The common limitation is that carving depends on the adequacy of the structure used to judge removal. In weakly supervised attribute learning, latent responses may be noisy or confounded by co-occurrence. In VFM compression, insufficient calibration coverage or low recoverability can make repair inaccurate. In topology learning, gate initialization, pressure estimation, and cooldown modeling affect the resulting architecture. In 3D systems, hidden geometry, occlusion, voxel resolution, segmentation errors, and ambiguous topology constrain reliability. In runtime inference, attention sparsity and resolution changes can introduce artifacts or reduce consistency.

The principal unresolved research directions include finer-grained topology learning, task-specific and hardware-aware objectives, calibrated recovery uncertainty, semantic and topology-preserving 3D carving, physically validated tool-path planning, and formal criteria for event boundaries in conceptual models. A broader implication is that carving is most effective when removal and preservation are optimized jointly: the system must identify what can be discarded, determine what surviving structure can reconstruct, and evaluate whether the residual object still satisfies the intended task, geometry, semantics, or computational objective.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Model Carving.