Net2Net: Accelerating Learning via Knowledge Transfer
Paper · 2015 · Tianqi Chen, Ian Goodfellow and Jonathon Shlens
Summary
Training a neural network takes time, and changing its architecture can mean doing much of that work again. Net2Net asks whether an existing network’s solution to a task can provide the starting point for a larger network built to solve that same task. The authors show how to change the architecture and rewrite its weights together, so that before further training, the larger network computes the same output as the original for any input. The original network is called the teacher and the enlarged network the student. The student starts with the teacher’s behavior and can use its additional capacity as training proceeds.
The paper develops a method for each kind of growth. Net2WiderNet adds units by copying existing ones. It divides each copied unit’s outgoing weights among all its instances, so their combined effect on the next layer is unchanged. For a convolutional network, the copies are made at the level of feature channels. Net2DeeperNet inserts layers configured to pass their inputs through unchanged. This works when the added layer’s operations, including its activation function and any normalization, can be made to preserve the signals it receives. Once initialized, the inserted layers can learn alongside the rest of the network.
The experiments use Inception-BN networks for image classification on ImageNet. A standard-width network initialized from a narrower teacher reached roughly the same final validation accuracy as the randomly initialized network, with fewer minibatches after initialization. A deeper network initialized from a standard teacher reached good training and validation accuracy sooner than a randomly initialized network of the same architecture. In a separate design experiment, a more extensively deepened network achieved 78.5% accuracy on the authors’ ImageNet validation set. The authors describe that result as a new state of the art. They did not train that larger architecture from scratch, so the design experiment measures what they achieved with the transfer workflow, while the earlier comparisons provide the more direct evidence for acceleration.
The guarantee concerns the network’s predictions at the point of an exact transformation. The rate of subsequent improvement and the accuracy it eventually reaches are empirical questions. Widening can also require a small perturbation so that copies learn different features, in which case the starting predictions are only approximately preserved. The paper’s practical contribution is a way to reuse a trained network across compatible architecture changes, making it possible to begin a new experiment with a functioning predictor and then measure what the enlarged architecture can learn.
Deep dive: Net2Net: Accelerating Learning via Knowledge Transfer
Net2Net reuses a trained neural network to initialize a wider or deeper one, preserving its predictions as a starting point for further training. · about 33 minutes to read
The problem and its context
Architecture design as a sequence of experiments
In supervised machine learning, a training run starts with a network architecture and adjusts the weights using examples from a dataset. Architecture design adds a slower loop around that process. A researcher trains a network, examines its performance, changes the architecture, and trains another network to judge the change. The paper describes large runs that can take a week or even a month. That delay matters because the result of one run often determines which change is worth making next.
A wide layer has more units operating at the same stage of the computation. A deep network has more stages through which information can pass. In a convolutional network, a unit’s learned weights can be reused across spatial locations, and widening usually means adding channels, each of which carries a feature across those locations. Adding either channels or layers changes the shapes or placement of the weights. A trained network’s weights therefore cannot always be loaded directly into an enlarged architecture, even when the input, output, and task stay the same.
The authors frame the problem around the work that has already gone into learning the task. An image classifier, for example, already turns an input image into probabilities over categories. If a candidate architecture is an enlargement of that classifier, it might be able to perform the same computation using its different arrangement of weights. The researcher could then evaluate the candidate by starting from a working classifier and continuing training. The value of that starting point is greatest in the workflow the authors describe, where a trained predecessor is already available and the next design grows out of it.
The paper also considers a system that receives additional training examples over a long period. Early on, a smaller network can be attractive because it is cheaper to use and the limited data may favor a less complex predictor. A larger training set may later support, or call for, a larger network. If the enlarged network initially makes the same predictions, the system can change its capacity while retaining its current behavior. This is a motivation for the method. The experiments themselves study training and design changes on ImageNet.
Growing a network while keeping it useful
The authors discuss cascade-correlation as an earlier way to enlarge an existing network. In the architecture they describe, a new hidden unit takes input from earlier hidden units, which are kept fixed after the addition. They also discuss a related way of adding whole layers while holding the lower layers fixed. Both approaches reuse learned weights. The paper’s concern is what happens just after the addition, when a newly attached component can change the network’s behavior before it has learned how to contribute.
Freezing earlier weights deals with a real problem in that situation. An update made while a new component is still poorly adapted can change a useful existing representation in response to that component’s errors. Freezing also means the retained and newly added parts cannot immediately adjust together. Net2Net approaches that problem at initialization, by configuring the new parts to preserve the old computation. The weights can then be trained jointly from a starting point whose predictions are already known.
Another line of earlier work used smaller networks to help train deeper ones. The paper mentions FitNets and work on deep convolutional classifiers, describing earlier networks with up to 19 weight layers. For the Net2Net authors, greater depth was already feasible using their Inception baseline, batch normalization, and RMSProp. Batch normalization is an operation that normalizes activations and applies a learned scale and offset. RMSProp is the optimization method named in the paper’s account of that baseline. The authors focus on the time it takes to train the next architecture when a predecessor is available.
The paper also discusses compression and distillation as ways to transfer learned behavior. Its account of compression describes a single network learning a function resembling the aggregate behavior of several networks, with regularization as part of the motivation. Net2Net starts with a trained teacher on the same task and uses its weights to construct a student that initially represents the teacher’s function. After the transfer, the student is trained on the task. Staying close to the teacher’s outputs is a property of the starting point only.
Identity weights, which leave their input unchanged under a linear transformation, had appeared in earlier initialization work. The paper’s use of them is to add a stage to a network that has already learned a task. It also draws a parallel with greedy layerwise pretraining of deep belief networks. The example it discusses adds a layer corresponding to an extra sampling step, arranged so that the generative probability distribution is preserved. Net2Net’s equality concerns the deterministic input-to-output computation of a feed-forward network. That distinction matters because a preserved distribution in the generative construction does not imply preservation of the corresponding deterministic upward pass.
The method, step by step
What the teacher passes on
Net2Net starts with a teacher that has already been trained. For the ImageNet experiments, its input is an image and its output is a vector of category probabilities. Those probabilities, including their values on images the teacher got wrong, are the behavior the authors aim to preserve. The student has extra units or stages, but the same kind of input and output. The transfer consists of choosing weights for that larger architecture using the weights of the teacher.
Growing a trained network with Net2Net
The steps in order.
The paper writes the teacher’s computation as follows.
y = f(x; θ)
Here x is an input, y is the network output, f is the teacher’s input-to-output computation, and θ is the collection of learned parameters that specifies that computation. The semicolon separates the input from the parameters of the function.
The transfer chooses parameters satisfying this condition.
∀x, f(x; θ) = g(x; θ′)
The symbol ∀ means “for every,” and x ranges over inputs. The teacher function f uses its trained parameters θ. The student function g uses parameters θ′, where the prime marks the new parameter collection. The equals sign requires equality of the outputs, including every entry of an output vector. It is stronger than requiring the same predicted class, and it applies independently of whether a particular input appeared in training.
That equality is sufficient to explain the enlarged network’s immediate usefulness. Any evaluation that depends only on the output will initially give the same result under an exact transformation. A wrong prediction stays wrong, and a correct one stays correct. The additional capacity is present in the new parameterization, even though its effect on the task becomes visible only after some of those parameters change.
For the exposition, the authors describe a hidden layer as a weighted combination of the previous layer’s activations followed by an activation function.
h⁽ⁱ⁾ = φ((W⁽ⁱ⁾)ᵀ h⁽ⁱ⁻¹⁾)
The index i identifies the layer. The vectors h⁽ⁱ⁾ and h⁽ⁱ⁻¹⁾ contain the activations at the current layer and the preceding layer, respectively. An activation is a unit’s output on the current input. The matrix W⁽ⁱ⁾ holds the weights into layer i, with an input coordinate along each row and an output unit along each column. The superscript ᵀ transposes the matrix so it can multiply the preceding activation vector as written. The function φ applies the activation rule, such as rectification, after the weighted combination. The paper also treats a bias as a weight attached to a constant input of 1, so the same representation can account for a unit’s learned offset.
The layer notation makes the operations easier to explain, but a feed-forward network can have branches as well as a simple chain of layers. The paper uses Inception networks, whose branches can transform the same signal in different ways and combine the results. A change to a layer can affect more than one downstream consumer. The local rule that preserves a computation must therefore be carried through the network wherever the changed activations are used.
Widening a layer by sharing each copied unit’s contribution
Consider a hidden unit that computes a feature and feeds the next layer. Copy every incoming weight into a new unit, give it the same activation function, and its output will agree with the original on every input. Both units can now feed the next layer. If each has the original outgoing weights, their joint contribution is larger than before. The correction is to share those outgoing weights between the original and the copy. The receiving units then get exactly the contribution they used to get, even though it arrives along more connections.
The paper illustrates the operation by replicating a hidden unit whose incoming weights are labeled c and d and whose outgoing weight is labeled f. The new unit gets the incoming weights c and d. The old and new outgoing connections each get the value obtained by dividing f by 2. Because the original and the copy produce the same activation, the sum of their contributions at the receiving unit equals the original contribution. The same calculation works when a source unit has several copies or feeds several different outputs. Each affected outgoing weight is shared among the instances of its own source unit.
The authors formalize the construction for adjacent fully connected layers. A fully connected layer can use every input coordinate in computing each of its outputs. At layer i, the teacher takes m inputs and produces n outputs. The next layer, i + 1, has p outputs. Thus the first weight matrix has shape m × n and the second has shape n × p. The student layer has q outputs, where q > n. The matrices must change on both sides of the layer, because the number of columns in one matrix determines how many rows the following matrix needs.
The widening rule first assigns each student unit a teacher unit to copy.
g(j) = {
j if j ≤ n
a random draw from {1, 2, …, n} if j > n
}
In this widening rule, g is the index mapping, distinct from the student’s prediction function denoted by g earlier in the paper. Its argument j is the position of a student unit, ranging from 1 through q. The value g(j) is the position of a teacher unit between 1 and n, where n is the teacher width. The comparisons ≤ and > separate positions assigned to the original units from the additional positions. The braces enclose either the cases of the rule or the set of available teacher indices, and … indicates the intervening indices. The extra positions are sampled with replacement, so a teacher unit can be selected multiple times. Keeping the original positions guarantees that each teacher unit still has at least one representative.
The incoming weights of the wider layer are then set as follows.
U⁽ⁱ⁾[k, j] = W⁽ⁱ⁾[k, g(j)]
The superscript in parentheses is the layer index i. The matrix U⁽ⁱ⁾ holds the student’s weights into that layer, and W⁽ⁱ⁾ holds the corresponding teacher weights. Square brackets select a matrix entry by row and column. The input index k refers to the same preceding activation for both networks in this single-layer widening example. The index j names the student unit, and g(j) identifies the teacher unit it copies. Thus the incoming column for student unit j comes from one complete teacher column.
The outgoing weights are adjusted in the next layer’s matrix.
U⁽ⁱ⁺¹⁾[j, h] = W⁽ⁱ⁺¹⁾[g(j), h] / |{x : g(x) = g(j)}|
Here U⁽ⁱ⁺¹⁾ and W⁽ⁱ⁺¹⁾ are the student and teacher matrices at the layer immediately following i. The index j identifies a student unit in the widened layer, and h identifies an output unit of the following layer. The row indexed by g(j) contains the teacher unit’s outgoing weights. In the set inside the vertical bars, x is a candidate student index, a separate use of the letter from the full network input. The colon means “such that.” The bars give the number of indices mapped to the same teacher unit as j. That count includes the representative at the original position, so it is positive. Division gives each representative the same share of the teacher unit’s outgoing weight to h.
Function preservation follows from grouping the terms entering the next layer by their teacher source. Within a group, all the activations are equal, and the outgoing weights into a particular receiving unit sum to that source’s original weight. The resulting weighted input to the receiving unit is unchanged, so its activation remains unchanged too. From that point, the rest of the network receives the same values. This argument also explains why the teacher units can be selected randomly. The equality depends on copying and counting them consistently, irrespective of how frequently the random draw selects each particular unit.
Applying the mapping across the network
When consecutive layers are both widened, the new matrix needs to account for copies along both its dimensions. Its columns determine which teacher computations are reproduced at the current layer. Its rows receive activations from the preceding layer, where several student coordinates may now correspond to the same teacher coordinate. The general equation in the paper combines those decisions.
U⁽ⁱ⁾[k, j] = W⁽ⁱ⁾[g⁽ⁱ⁻¹⁾(k), g⁽ⁱ⁾(j)] / |{x : g⁽ⁱ⁻¹⁾(x) = g⁽ⁱ⁻¹⁾(k)}|
The matrices U⁽ⁱ⁾ and W⁽ⁱ⁾ again hold student and teacher weights for layer i, with entries selected by the bracketed indices. The student input coordinate is k and its output coordinate is j. The map g⁽ⁱ⁻¹⁾ sends coordinates of the student’s preceding layer to teacher coordinates. The map g⁽ⁱ⁾ does the same for the current layer. They determine the teacher row and column to read. The variable x ranges over student coordinates in the preceding layer. The bars count the indices x for which the equality in the set holds. The denominator therefore measures replication on the input side of this matrix. Copies on its output side will have their contributions balanced in the matrices that consume those outputs.
An input coordinate remains itself whenever the input to that part of the network has not been widened. The output also keeps its task-specific meaning. For the ImageNet classifier, the category positions still designate the same categories. Replication changes the internal representation while the network continues to offer the same kind of answer to the same kind of question.
In a convolutional layer, a learned filter operates across positions in its input. Replicating an individual spatial activation would ignore that shared structure. The authors instead map whole channels. A new copy inherits the filters that produce the old channel, and the following convolution divides the filter weights associated with that input channel among its representatives. The redistribution is the same as in the dense-layer argument, with the channel used as the unit of replication. All positions within a replicated channel follow the same assignment.
Batch normalization imposes another consistency rule. A channel can have its own learned scaling parameter. That parameter follows the same map as the weights that produce the channel. If a student channel uses the convolution weights belonging to one teacher channel and the scaling parameter belonging to another, its value may fail to match either. A valid rewrite preserves the relationship between the copied convolution and the per-channel operations acting on it. The downstream compensation relies on the value after those operations agreeing with the teacher’s activation.
Concatenation imposes a different rule. Concatenation places the outputs of separate branches next to each other in a single vector or tensor. When an earlier branch is widened, the point where a later branch begins shifts. A consumer of the concatenation needs to know which branch produced each student coordinate and which position it came from in the original branch. The teacher index is determined using the original layout. The student index is interpreted using the enlarged layout. Using the same offset for both can result in a filter reading the wrong feature.
The authors describe how a more general implementation could propagate these mappings forward through the directed acyclic computation graph. This graph records operations and the dependencies between them, with no cycle leading a computation back into itself. Each operation would specify how to produce a consistent output map from its input maps. The paper compares this with shape inference, where the shape of an operation’s output is derived from the known shapes of its inputs. For the experiments, the authors wrote the rules they needed for Inception. Their discussion identifies what an automatic approach would have to infer.
Letting copied units learn different features
An exact wider initialization can leave replicas symmetric. They have the same incoming weights, the same activations, and evenly split connections to the next layer. If training continues to treat them identically, the updates can keep their computations identical. In that case the enlarged layer has space for more features, while several of its units continue to provide effectively the same feature. The redistribution that keeps the initial output stable also explains why the copies can need help moving apart.
Dropout is one way the paper says this symmetry can be broken. It randomly suppresses activations during training, which can create different conditions for units that initially compute the same value. When a suitable source of asymmetry is already present, the wider network can start from the exact transformation. The equality describes the function constructed by the parameter rewrite. Randomness during training can subsequently give the replicas different experiences.
In settings without such randomization, the authors advise perturbing the incoming weights of the additional copies while keeping the first instance of each unit intact. A small perturbation makes the replicated activations slightly different and gives training a way to specialize them. It also means the exact cancellation in the next layer no longer follows algebraically. The paper describes the resulting network as an approximation to the teacher in that case, and notes that the noise can briefly impair performance. The initialization retains the learned computation closely enough to serve its intended role, while allowing copies to become distinct.
Deepening a network with a layer that initially passes signals through
Net2DeeperNet starts with an existing layer and places an additional layer after it. The original layer still transforms its input. The inserted layer is initialized so the output of the combined stages equals what the original layer produced on its own. It can learn a different transformation once training resumes.
The paper gives the enlarged computation in the following form.
h⁽ⁱ⁾ = φ((U⁽ⁱ⁾)ᵀ φ((W⁽ⁱ⁾)ᵀ h⁽ⁱ⁻¹⁾))
The vector h⁽ⁱ⁻¹⁾ is the input to the original layer, and h⁽ⁱ⁾ is the output carried forward after the enlarged computation. The superscripts in parentheses identify the original layer position i and its predecessor. The matrix W⁽ⁱ⁾ is the retained weight matrix, while U⁽ⁱ⁾ supplies the inserted layer’s weights. The transpose ᵀ gives each matrix the orientation used for multiplication by an activation vector. The inner φ is the activation of the retained layer, and the outer φ is the activation applied in the new layer. The paper initializes U⁽ⁱ⁾ to the identity matrix and leaves its entries trainable.
A linear identity matrix passes a vector through unchanged. The new layer still has its own activation function, however. Consequently, the paper requires the following equality for the identity-matrix construction.
φ(I φ(v)) = φ(v)
Here v is any vector of weighted inputs before the original activation, φ is the activation rule, and I is the identity matrix acting on the vector produced by φ. Juxtaposition with I denotes matrix multiplication. The equality says that applying φ to the already activated vector gives the same result as applying it once. It is the behavior on the outputs of the first activation that matters.
Rectification meets the condition. A rectified linear unit suppresses negative inputs and passes non-negative inputs through. Its outputs are therefore already in the range where another rectification leaves them alone. A new rectified layer with identity weights can immediately follow the old one without changing the signal. The logistic sigmoid does not meet the condition, and the paper says a same-type sigmoid layer cannot implement the required identity over the relevant domain. Maxout, which selects the maximum from a group of inputs, needs a different construction. The authors describe a matrix resembling the identity with replicated columns, allowing the grouped maxout computation to return the required value.
Convolutional layers use identity filters for the same purpose. In this application, a filter can leave a channel at its original value and spatial location, with no contribution from other channels or neighboring positions. The new convolution is still a trainable layer. Its initial filters simply arrange its weights so that it supplies the same signal to the rest of the network. The operation must work for the whole layer, including the activation and any normalization.
An inserted batch-normalization operation has to be configured accordingly. The paper describes choosing its output scale and bias to undo the normalization of the inserted layer’s activations. The authors run the network forward on training examples to estimate the activation statistics needed for that choice. Without the compensating scale and offset, a convolution initialized to pass through its input could still be followed by a normalization operation that changes it. The training data in this preparation step supply statistics. The step is distinct from training a randomly initialized student to predict a teacher’s features.
Identity insertion is a restricted way to make a deeper computation equivalent to a shallower one. In principle an existing layer could be replaced by a sequence of transformations whose composition reproduces it. The authors point out that finding such a factorization is difficult when the original computation includes nonlinearities and batch normalization. Inserting a pass-through layer avoids that search and provides a useful construction for the architecture they study. The inserted layer begins at a simple parameter setting and is subsequently free to participate in more complex computations.
The paper says noise is optional for deepening. The inserted layer has its own position in the computation and can be trained from the exact identity initialization. The authors allow a small perturbation if breaking symmetry sooner is useful. They also describe combining deepening with widening. An identity insertion keeps the width of the incoming activation, and a subsequent widening step can expand the added layer. This makes it possible to insert a hidden layer as wide as or wider than the one below it while retaining the original function at the point of exact transfer.
Resuming training
The authors describe the next stage as ordinary training on the original task. The teacher’s weights supply the starting point. The student is allowed to change the inherited weights as well as those belonging to the enlarged portion. This permits adjustments on either side of an inserted layer and lets replicated channels develop in concert with the layers that read them.
The appendix treats this stage as fine-tuning. The teacher uses its usual training settings. The authors report that almost all settings normally used for training can also be used for the student, with a smaller initial learning rate as the main change in their experience. The learning rate controls the size of weight updates. Their suggested starting relationship is given below.
ηₛ ≈ (1/10) · ηₜ
Here ηₛ is the student’s initial learning rate and ηₜ is the teacher’s initial learning rate. The subscripts s and t distinguish student and teacher. The symbol ≈ means approximately equal to, and · denotes multiplication. The factor 1/10 is the authors’ empirical guidance. They explain it in terms of continuing training that already took place, since the teacher’s learning rate would typically have been reduced over its own run. The relationship is a training choice from their experience, separate from the weight equations that preserve the function.
Experiments and results
The ImageNet setting
All the reported architecture-growth experiments use Inception-BN networks for ImageNet image recognition. The networks take images and return probabilities for object categories. The authors use TensorFlow for the experiments. They describe the standard Inception architecture in terms of several paths through its branches. The shortest route from input to output passes through 25 weight layers and the longest through 47. The architecture description accounts for those routes with 3 convolution layers and 11 Inception modules, with paths of different lengths inside a module. As a consequence, a change to the depth of a branch should be read as a change to the route through that branch.
The experiments ask related questions at different levels of control. In the widening study, a smaller network initializes a standard-sized architecture, which is also trained by baseline methods. In the deepening study, the standard network supplies weights for a deeper architecture, and the authors compare with random initialization of that architecture. In the design exploration, they use the standard network to construct more ambitious candidates. There the original architecture’s training curve is a reference for the workflow, and the deeper and wider candidates have no directly matched runs from scratch.
The curves track accuracy as training proceeds. A minibatch is a group of training examples processed together during training. Counting minibatches gives a measure of how much training has been done after initialization. It leaves out differences in processing time per minibatch and does not include the earlier cost of creating a teacher. Those distinctions are important in a paper whose motivating scenario assumes that an existing network is available for reuse. The controlled comparisons show how quickly the student progresses from its starting point.
From a narrower teacher to standard Inception
For the widening experiment, the authors build a teacher by multiplying the number of convolution channels within each Inception module by √0.3. Because a convolution’s weight tensor depends on the number of channels on both sides, the paper reports that most of the affected layers have 30% of the original parameter count. This figure describes most of those layers. The authors retain the components outside the Inception modules for software simplicity, so the change concerns the channels within the modules instead of every part of the network.
Once that smaller teacher is trained, the authors use Net2WiderNet to initialize a standard-sized student. One comparison uses random padding. It carries over the existing weights and fills the newly created parts of the weight matrices with random values. This baseline retains learned parameters but lacks the replication and compensation that make an exact widening preserve the computed function. The other comparison starts the standard-sized architecture from random weights. Its progress shows what the same destination architecture can achieve when no trained weights are inherited.
The Net2WiderNet student reaches a useful level of validation accuracy early and approaches its eventual accuracy sooner. The authors describe the student as reaching roughly its final ImageNet validation accuracy after roughly 3 × 10^6 minibatches. A randomly initialized network reaches the same approximate level and takes roughly an additional 2 × 10^6 minibatches to get there. The paper gives the latter number as an interval beyond the widening run’s reported convergence point.
Reported training intervals to comparable ImageNet validation accuracy
The randomly initialized run continued beyond the point where Net2WiderNet had nearly converged.
The numbers
| System or setting | million minibatches in the indicated interval |
|---|---|
| Net2WiderNet from transfer to near its final accuracy (this paper) | 3 |
| Random initialization beyond that point to comparable accuracy | 2 |
The bars represent distinct intervals. The Net2WiderNet bar starts at transfer. The random-initialization bar shows the additional training after the common point used in the paper’s comparison. Its length is the extra interval alone. This makes the comparison about when the networks reach a comparable accuracy, with the start of each reported interval made explicit.
The eventual agreement in validation accuracy matters alongside the earlier progress. A narrow teacher’s limitations could, in principle, carry over if the student remained close to the teacher’s computation throughout training. In this experiment, the standard-sized student matches the approximate endpoint of the same architecture trained from scratch. The authors interpret this as evidence that the larger architecture determines the level attainable in this comparison. The transfer gives it a different path through training while leaving it able to improve past the starting function.
Increasing the depth of Inception modules
For the depth comparison, the teacher is standard Inception. The authors focus on pairs of convolutional layers with rectangular kernels. One layer uses a vertical kernel and the next a horizontal kernel. Each is a full layer with its own rectifying activation and batch normalization. This detail affects what an identity insertion must do. The added computation includes those operations, so configuring only the linear kernels would leave part of the effective transformation unaccounted for.
Where the vertical-horizontal pair occurs, the authors add two more such pairs, configured to act as the identity initially. The rest of the procedure follows the deepening method, including the treatment of normalization. The control is an identical deeper architecture initialized randomly. With the destination architecture held fixed, the comparison addresses the effect of the training starting point instead of the effect of choosing a different depth.
In the paper’s comparison, Net2DeeperNet reaches good training and validation accuracy earlier than random initialization. Training accuracy measures how well the classifier is performing on training examples, while validation accuracy tracks performance on the validation examples. The earlier improvement appears in both measures. The paper describes the curves qualitatively and does not give a numerical milestone in the prose or caption for this matched depth comparison. The reported result is the direction of the difference on both curves.
Exploring larger designs
The final experiment treats transfer as part of architecture search by hand. Starting from a standard network, the authors build a candidate with width √2 times the original width. They also build a separate deeper candidate by adding four vertical-horizontal convolutional pairs to every Inception module. The paper’s figure caption describes the depth addition as eight layers in each module. This is a more extensive change than the one in the controlled depth comparison.
The deeper design achieves 78.5% accuracy on the authors’ ImageNet validation set, which they present as a new state of the art. The reported percentage is tied to validation accuracy by the experiment’s prose. The figure caption elsewhere calls the outcome a test error without attaching a figure to that phrasing. The numerical result to report is the validation accuracy, with the split and metric given in the experiment itself.
The authors say time and resources prevented them from training the larger designs from scratch. They instead give the standard Inception training curve for reference, on the reasoning that the standard architecture should be easier to train. They report that the Net2Net-initialized larger designs converge sooner than the standard run. This captures the practical appeal of the workflow: the researchers could try larger candidates starting with trained weights and obtain a stronger validation result from the deeper design. A same-architecture estimate of the training saved for either of these larger candidates would require a control of the kind used in the earlier experiments.
What the ablations show
Widening with learned weights and with a preserved function
The random-padding comparison is the closest the paper comes to separating weight reuse from the preservation rule. Random padding begins with a smaller trained network and carries its existing weight values into the larger matrices. Net2WiderNet also starts from trained weights. It additionally arranges the new units and their downstream connections so that new coordinates initially reproduce old features without changing their aggregate contribution. Both approaches are evaluated as ways to train the standard-width network.
The paper reports faster convergence for the function-preserving approach than for the widening baselines. This supports the value of arranging the enlarged computation around the learned behavior. The result is more informative than a comparison with an completely random start alone, because random padding already has access to a trained predecessor. It still tests a package of changes. Replicating activations and sharing outgoing weights are linked in the transfer rule, and the paper does not run separate curves varying only one of them.
The comparison with random initialization gives the clearest evidence about the endpoint in the widening setting. The randomly initialized network can reach approximately the same validation accuracy, and the Net2WiderNet student gets there earlier. This tests whether the transferred network can learn beyond the initially narrow computation. It provides evidence that the replicated structure can develop into an effective wider network under the training procedure used here. The paper does not trace individual channels to determine which copies learned distinct features or which changes account for the endpoint.
The deeper architecture with and without transfer
Random initialization in the depth study holds the deeper architecture fixed, including the extra convolutional pairs. The randomly initialized run and the transferred run therefore have the same available capacity and the same arrangement of layer types. The difference is whether they begin with the shallower network’s learned weights and new layers configured to act as identities. The earlier attainment of good training and validation accuracy supports using that initialization when a trained predecessor is available.
The comparison does not separately vary the identity initialization and the inheritance of the original weights. There is no reported control that retains the teacher’s weights while giving the inserted layers an unrelated initialization. The experiment evaluates the complete deepening operation. Similarly, the appendix’s smaller student learning rate is part of the authors’ training guidance. The paper does not provide a learning-rate sweep showing how sensitive the observed depth advantage is to that choice.
The design experiment asks a different question. Its wider and deeper candidates show what researchers could explore using the transfer procedure. Because their reference curve belongs to the standard network, the result there combines differences in architecture and initialization. The strongest comparison for attributing faster progress to the initialization is the earlier matched depth experiment. The strongest evidence for attaining a higher validation accuracy with an enlarged design is the later exploration.
Feature prediction as an alternative transfer procedure
Before adopting function preservation, the authors tried training a randomly initialized large student with auxiliary objectives. They attached learned convolutional predictors to student hidden layers. A predictor took the student’s activation as input and tried to reconstruct the corresponding teacher activation, with a term added to the training objective to reward closeness. The intended benefit was that the student could quickly acquire an internal representation already useful for the task.
This strategy resembles the paper’s account of FitNets. It has a broader architectural premise because the learned auxiliary predictor can mediate between teacher and student representations. It also asks optimization to discover an approximation to the teacher from a random start. In contrast, the weight transformations can establish equality as soon as the student is constructed, provided the architecture supports them. The auxiliary method did not supply a compelling speed improvement or other advantage in the authors’ experiments.
The authors suggest that batch normalization made the baseline strong enough to reduce the benefit of feature prediction. They cite an independent observation that the benefit of FitNets disappeared after batch normalization was introduced in another setting. This is a proposed explanation for the negative result. The paper does not present a controlled comparison in which batch normalization is toggled for the authors’ own feature-prediction run. The reported evidence supports the choice to pursue direct transformation in their setup while leaving the broader question of learned transfer between dissimilar architectures open.
Limitations
Limits identified by the authors
The authors describe the effective transformations as architecturally constrained. A student can be built by widening layers or inserting compatible new ones. A mapping for arbitrary changes to network structure is outside what the paper demonstrates. The widening procedure requires a rule for every operation affected by a change in its inputs or outputs. The authors worked out those rules for Inception and describe graph-wide inference as a way to generalize the procedure.
For deepening, the inserted operations must be able to represent the required pass-through on their incoming signals. Rectified layers admit the simple identity construction, maxout needs a modified one, and same-type sigmoid layers cannot perform the desired insertion by this method. Batch normalization adds a preparation step because the scale and offset must compensate for activation statistics. The authors present general nonlinear factorization and transfer to architectures less like their teachers as open directions.
Exact widening also has a practical qualification. If training supplies no suitable asymmetry, the authors advise adding noise so the copies can learn separately. That produces a student whose function is only approximately preserved. They report that this can briefly reduce performance. Exact preservation and the practical choice to perturb weights therefore describe different initial conditions. The paper explains when the distinction arises but gives no quantitative comparison of the early performance cost across noise choices.
The authors also state a limit on the design experiment: resources and time prevented matched training runs from scratch for the more extensively enlarged designs. The 78.5% ImageNet validation accuracy is a result for the deepened network trained through transfer. The paper’s original-architecture reference curve supplies context for how the workflow progressed. It cannot establish how the deeper candidate would have trained under an equally resourced run from random weights.
Limits visible in the experimental setup
The central equality and the speed claim have different kinds of support. The weight construction explains why the output is preserved at initialization. Faster learning is an empirical finding from the ImageNet experiments. Even from a functionally identical starting point, the student can move in different directions because it has different parameters and may use a different starting learning rate. A subsequent update can improve or worsen performance. The authors’ observation that improvements accumulate from the teacher’s starting point presumes that the steps being taken improve the performance under consideration.
The reported evidence comes from closely related Inception-BN image classifiers on one dataset. The operation is described with enough generality to reason about other compatible feed-forward computations, but compatibility alone cannot predict a training-time advantage. A teacher’s starting accuracy, the placement of new capacity, and the behavior of optimization can affect the outcome. The widening endpoint shows that a particular wider student can match training from scratch. It leaves open how frequently initialization from a smaller network will reach the same endpoint in other settings.
Minibatches are also a measure of training progress with a specific accounting boundary. The post-transfer comparison fits the case where a trained teacher is on hand. If the teacher is trained solely to initialize a single student, its training cost is part of the total. If several candidates reuse it, those candidates share the upstream investment. The reported minibatch intervals do not give a total wall-clock comparison for those workflows. Nor do they measure the work required to prepare transformation rules for a new architecture.
The lifelong-learning motivation raises questions the ImageNet runs do not test. Preserving an existing classifier’s output at the instant of growth would preserve its current behavior at that instant. Training afterwards on a changing stream could affect previous capabilities, and the paper does not study how those capabilities evolve under such a stream. The experiment also does not test a policy for deciding when additional data justify more width or depth. The method supplies an operation for carrying out a compatible enlargement after that decision has been made.
Finally, the speed comparisons give limited resolution about variability. The paper describes runs and curves, with approximate minibatch milestones for widening and a qualitative comparison for controlled deepening. It does not report uncertainty around those intervals or a distribution of outcomes across runs. Its evidence is well suited to the concrete workflow and architectures examined, while offering a smaller basis for predicting exact gains on a fresh run or a different task.
What came after
Several later papers that cite Net2Net address the related question of what training can reuse when a network changes. Their titles identify different directions for that change, including greater width, a move to a sparse architecture, initialization from a smaller predecessor, and transfer through selected representations. A citation establishes a connection to Net2Net. The particular weight mappings, equality guarantees, and experimental outcomes of those later approaches require more evidence than the citation alone supplies.
Wide Residual Networks takes width as its architectural subject in residual networks. Its connection to Net2Net is the shared importance of width as a decision about capacity. The Net2WiderNet experiments study how to initialize a chosen wider architecture from a narrower one. The later work’s title places width within the design of a different network family. From the citation it is possible to connect the questions without assigning Net2WiderNet’s channel replication rule to that work. Wide Residual Networks
PathNet connects gradient descent with the evolution of channels or pathways in a larger neural network. That framing puts the reuse question inside a network with multiple possible routes for computation. Net2Net begins from a teacher and rewrites parameters for a chosen enlargement. PathNet’s stated subject instead puts emphasis on how routes within a larger structure are selected and trained. The relationship concerns how useful computation can carry forward as the structure used for learning changes. PathNet
Sparse Upcycling is closer to the checkpoint-reuse problem. It takes dense checkpoints as the starting point for training a sparse mixture of experts. A checkpoint is a saved parameter state, so the connection is the availability of something already trained when work begins on a changed architecture. The architectural destination in this case is a mixture of experts. Net2Net’s own experiments change convolutional width or depth, with a guarantee tailored to those operations. The later title identifies a different destination for reusing a dense starting point. Sparse Upcycling
Scaling Smart explicitly applies initialization from a smaller predecessor to accelerating the pretraining of large language models. The question is close to the one asked in Net2Net’s ImageNet work: how much of a larger network’s training can begin from computation already learned at a smaller scale? The title locates that question at the pretraining stage. Net2Net supplies the earlier example of using a trained smaller network to accelerate learning on the same task, with exact preservation defined for its own transformations. Scaling Smart
Other citing work connects knowledge transfer with compact representations. Patient Knowledge Distillation uses distillation for BERT compression, making the target a compressed network. This is the direction of transfer that Net2Net discusses in its account of earlier distillation, where a student learns from a teacher’s behavior. BinaryBERT cites Net2Net in work concerned with BERT quantization, a change to how the network is represented numerically. These cases bring the question of what learned behavior can be carried across a change to problems where the goal is a more compact representation. Patient Knowledge Distillation · BinaryBERT
Accelerating LLM Fine-Tuning via Embedding Knowledge Transfer identifies embeddings as the locus of transfer during fine-tuning. An embedding is a learned vector representation. The title points to a different granularity of reuse from the whole-network equality constructed by Net2Net. Here the stated purpose is to accelerate adaptation by transferring knowledge through embeddings. The common concern is the role of previously learned parameters in shortening the next training stage, with the object being transferred specified at a different level. Accelerating LLM Fine-Tuning via Embedding Knowledge Transfer
Cite
Cite as Tianqi Chen, Ian Goodfellow and Jonathon Shlens. 2015. Net2Net: Accelerating Learning via Knowledge Transfer. arXiv (Cornell University).
@misc{chen2015net2net,
title = {{Net2Net: Accelerating Learning via Knowledge Transfer}},
author = {Tianqi Chen, Ian Goodfellow and Jonathon Shlens},
year = {2015},
doi = {10.48550/arxiv.1511.05641},
eprint = {1511.05641},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1511.05641}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/chen-2015-net2net-accelerating-learning-knowledge-transfer/
References
- Abadi, Martín, Agarwal, Ashish, Barham, Paul, Brevdo, Eugene, Chen, Zhifeng, Citro, Craig, Corrado, Greg S., Davis, Andy, Dean, Jeffrey, Devin, Matthieu, Ghemawat, Sanjay, Goodfellow, Ian, Harp, Andrew, Irving, Geoffrey, Isard, Michael, Jia, Yangqing, Jozefowicz, Rafal, Kaiser, Lukasz, Kudlur, Manjunath, Levenberg, Josh, Mané, Dan, Monga, Rajat, Moore, Sherry, Murray, Derek, Olah, Chris, Schuster, Mike, Shlens, Jonathon, Steiner, Benoit, Sutskever, Ilya, Talwar, Kunal, Tucker, Paul, Vanhoucke, Vincent, Vasudevan, Vijay, Viégas, Fernanda, Vinyals, Oriol, Warden, Pete, Wattenberg, Martin, Wicke, Martin, Yu, Yuan, and Zheng, Xiaoqiang. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. URL http://tensorflow.org/. Software available from tensorflow.org. OpenAlex ↗ · Scholar ↗
- Buciluǎ, Cristian, Caruana, Rich, and Niculescu-Mizil, Alexandru. Model compression. In Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 535–541. ACM, 2006. OpenAlex ↗ · Scholar ↗
- Fahlman, Scott E. and Lebiere, Christian. The cascade-correlation learning architecture. pp. 524–532, Denver, CO, 1990. Morgan Kaufmann, San Mateo. OpenAlex ↗ · Scholar ↗
- Glorot, X., Bordes, A., and Bengio, Y. Deep sparse rectifier neural networks. In AISTATS'2011, 2011. OpenAlex ↗ · Scholar ↗
- Goodfellow, Ian J., Warde-Farley, David, Mirza, Mehdi, Courville, Aaron, and Bengio, Yoshua. Maxout networks. In ICML'2013, 2013. OpenAlex ↗ · Scholar ↗
- Gutstein, Steven, Fuentes, Olac, and Freudenthal, Eric. Knowledge transfer in deep convolutional neural nets. International Journal on Artificial Intelligence Tools, 170 (03):0 555–567, 2008. OpenAlex ↗ · Scholar ↗
- Hinton, Geoffrey, Vinyals, Oriol, and Dean, Jeff. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. our card
- Hinton, Geoffrey E., Osindero, Simon, and Teh, Yee Whye. A fast learning algorithm for deep belief nets. Neural Computation, 18:0 1527–1554, 2006. OpenAlex ↗ · Scholar ↗
- Ioffe, Sergey and Szegedy, Christian. Batch normalization: Accelerating deep network training by reducing internal covariate shift. 2015. OpenAlex ↗ · Scholar ↗
- Jarrett, Kevin, Kavukcuoglu, Koray, Ranzato, Marc'Aurelio, and LeCun, Yann. What is the best multi-stage architecture for object recognition? In Proc. International Conference on Computer Vision (ICCV'09), pp. 2146–2153. IEEE, 2009. OpenAlex ↗ · Scholar ↗
- Mahayri, Amjad, Ballas, Nicolas, and Courville, Aaron. FitNets and batch normalization. Technical report, (unpublished), 2015. OpenAlex ↗ · Scholar ↗
- Mitchell, T., Cohen, W., Hruschka, E., Talukdar, P., Betteridge, J., Carlson, A., Dalvi, B., Gardner, M., Kisiel, B., Krishnamurthy, J., Lao, N., Mazaitis, K., Mohamed, T., Nakashole, N., Platanios, E., Ritter, A., Samadi, M., Settles, B., Wang, R., Wijaya, D., Gupta, A., Chen, X., Saparov, A., Greaves, M., and Welling, J. Never-ending learning. In Proceedings of the Twenty-Ninth AAAI Conference on Artificial Intelligence (AAAI-15), 2015. OpenAlex ↗ · Scholar ↗
- Romero, Adriana, Ballas, Nicolas, Ebrahimi Kahou, Samira, Chassang, Antoine, Gatta, Carlo, and Bengio, Yoshua. FitNets: Hints for thin deep nets. Technical Report Arxiv report 1412.6550, arXiv, 2014. our card
- Silver, DL, Yang, Q, and Li, L. Lifelong machine learning systems: Beyond learning algorithms. In AAAI Spring Symposium-Technical Report, 2013. OpenAlex ↗ · Scholar ↗
- Simonyan, Karen and Zisserman, Andrew. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. our card
- Socher, Richard, Bauer, John, Manning, Christopher D., and Ng, Andrew Y. Parsing with compositional vector grammars. In In Proceedings of the ACL conference, 2013. our card
- Srivastava, Nitish, Hinton, Geoffrey, Krizhevsky, Alex, Sutskever, Ilya, and Salakhutdinov, Ruslan. Dropout: A simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15:0 1929–1958, 2014. URL http://jmlr.org/papers/v15/srivastava14a.html. our card
- Szegedy, Christian, Liu, Wei, Jia, Yangqing, Sermanet, Pierre, Reed, Scott, Anguelov, Dragomir, Erhan, Dumitru, Vanhoucke, Vincent, and Rabinovich, Andrew. Going deeper with convolutions. Technical report, arXiv:1409.4842, 2014. OpenAlex ↗ · Scholar ↗
- Thrun, Sebastian. Lifelong learning: A case study. Technical Report CMU-CS-95-208, School of Computer Science, Carnegie Mellon University, Pittsburgh, PA 15213, November 1995. OpenAlex ↗ · Scholar ↗
- Tieleman, T and Hinton, G. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 4, 2012. OpenAlex ↗ · Scholar ↗