The Reversible Residual Network: Backpropagation Without Storing Activations
Paper · 2017 · Aidan N. Gomez, Mengye Ren, Raquel Urtasun et al.
Summary
Training a deep neural network requires more than keeping its learned parameters in memory. The training procedure also needs intermediate activations: the values produced as an input moves through the network. Ordinarily, these values remain available until the backward pass uses them to calculate gradients. As a network becomes deeper, this stored history grows. The Reversible Residual Network paper asks whether the architecture itself can remove much of that storage requirement. Its answer is to construct blocks whose inputs can be recovered from their outputs, allowing training to reconstruct intermediate states when they become necessary.
The proposed architecture, called RevNet, adapts the residual connections that had made very deep image classifiers practical. A conventional residual block adds a learned transformation to its input. A reversible block divides its input into channel groups and updates them in a particular order. During the backward pass, the additions can be undone in reverse order. The learned transformations inside the block do not themselves need inverses. This is the central design insight: the surrounding arrangement makes reconstruction possible while leaving considerable freedom inside the transformations. It turns a familiar architectural device into a mechanism for controlling the memory cost of machine learning.
The experiments compare RevNets with conventional residual networks on CIFAR-10, CIFAR-100, and ImageNet. The authors try to align computational depth and parameter counts, instead of comparing a small reversible network with a much larger baseline. They report closely matched classification performance; across their comparisons, a RevNet’s error never exceeded its corresponding ResNet’s error by more than 0.5%. Their practical memory demonstrations also show larger ImageNet batches fitting on the same hardware. The important qualification is that the claimed independence from depth concerns activation storage within reversible sequences. Parameters, temporary working memory, and activations at non-reversible boundaries still require space.
The savings come with additional computation and implementation work. Reconstructing an activation requires evaluating parts of the network again, and ordinary automatic differentiation does not automatically discard the forward history in the required way. Reconstruction is exact algebraically, but floating-point calculations introduce small discrepancies. The authors examine those discrepancies and find no meaningful effect on training or final performance in their CIFAR-10 comparison. The paper therefore establishes a useful architectural tradeoff: substantial reductions in retained activation memory can coexist with competitive image classification, provided the training implementation deliberately exchanges storage for recomputation.
Interesting ideas
Reconstruct state instead of retaining history. The reusable idea is to ask whether a later state contains enough information to recover an earlier one. If it does, an implementation may avoid storing the complete sequence of intermediate values. RevNet applies this principle to training activations, where the backward pass revisits information generated during the forward pass. The same question is useful whenever a computation accumulates a large history for later processing. The paper does not establish that every such process can be made reversible, but it shows why recoverability belongs among the design criteria when memory is scarce.
Make the wrapper reversible. The residual transformations inside a RevNet block can use ordinary neural operations; the reversible property comes from how their inputs and outputs are connected. This separates the requirement imposed on the whole block from the requirements imposed on its components. It is a useful pattern for researchers who want a strong structural property without restricting every internal operation to a narrow family. Here, the subtraction used during reconstruction removes a previously added transformation. There is no need to solve an inverse problem for the transformation itself.
Identify the boundaries that really lose information. The authors do not require the entire classifier to be reversible. They retain activations around operations such as sub-sampling and reconstruct states within the long stretches between them. This makes the proposal compatible with a practical architecture containing occasional changes in resolution. The broader engineering lesson is to locate irreversible boundaries explicitly. A system can obtain much of the benefit of reversible computation even when some operations still require stored state, as long as those boundaries remain comparatively infrequent.
Keep differentiation local. RevNet changes the way the backward pass obtains its inputs, but the derivatives of the residual functions can still come from ordinary automatic differentiation. This preserves modularity: changing a residual function does not require rewriting all the surrounding gradient logic. The paper’s implementation also exposes the cost of a convenient abstraction, because rebuilding a local forward calculation can introduce redundant work. For other systems, the useful practice is to separate state recovery, local computation, and derivative propagation so that each can be inspected and optimized.
Test numerical error through training behavior. A reversible equation does not guarantee exact recovery in floating-point arithmetic. The authors therefore compare gradients obtained from reconstructed activations with gradients obtained from stored activations, then compare the resulting training trajectories. This is more informative than declaring that reconstruction error exists or reporting an isolated discrepancy. It connects numerical differences to the outcome the method is meant to preserve. Similar evaluations are useful when an optimization changes arithmetic, precision, or the order in which intermediate values are produced.
Match the comparison to the actual claim. The main experimental question is whether imposing reversibility damages classification when computational depth and parameter counts are approximately aligned. The authors adjust the architecture to make that comparison meaningful. They also distinguish learning progress per update from the computational expense of an update. This discipline is worth carrying into other efficiency studies: predictive performance, memory capacity, arithmetic cost, and elapsed training time answer different questions. A strong result on one does not automatically settle the others.
Treat memory lifetime as part of implementation correctness. Writing an inverse formula is insufficient if the execution framework continues to retain every forward activation. The appendix describes implementations that deliberately release intermediate values and control what remains live between execution segments. This is a practical idea beyond RevNets: an algorithm’s memory advantage depends on the lifetime of real allocations, not merely on which values appear mathematically necessary. Measuring whether the intended workload actually fits is therefore part of validating the method.
Deep dive: The Reversible Residual Network: Backpropagation Without Storing Activations
Reversible residual networks reduce training memory by reconstructing activations. Explore their design, experiments, trade-offs, and limits. · about 34 minutes to read
How Mova uses it
For Mova, a small transparent language system written in Rust, the most direct connection is a design possibility rather than an established implementation. The paper studies image classifiers and their training procedures. It does not demonstrate a language application, a Rust implementation, or an integration with Mova. Consequently, the useful question is where a future trainable component in Mova might benefit from reconstructing intermediate states. There is no basis for claiming that Mova already obtains the paper’s memory savings.
A plausible application would arise if Mova acquired a deep trainable sequence of transformations whose saved activations became a substantial memory cost. A reversible arrangement could allow that sequence to retain its endpoint and reconstruct earlier states during gradient computation. The attraction would be especially clear if the aim were to keep training feasible within a small memory budget. However, the architecture would need to be designed for reconstruction from the outset. The paper does not offer a general switch that makes any existing computation reversible.
The channel partition used in the image experiments should also remain a concrete architectural choice, instead of becoming a loose analogy. Mova would need a clearly defined state representation that could be divided into compatible groups. Any operations that discarded information would require separate treatment. The paper’s solution is to store activations at non-reversible boundaries; a language-oriented implementation would need to identify its own boundaries before making a memory claim. The fact that a system processes language does not itself establish that the reversible construction is appropriate.
Rust could make the lifetime of retained values an explicit implementation concern. The relevant borrowing would be a careful separation between the current state, temporary values used inside a transformation, and boundary values preserved for the backward pass. That is an engineering proposal for Mova, not a measured consequence of using Rust. RevNet’s appendix shows why the distinction matters: a mathematically economical algorithm can still consume unnecessary memory when its execution machinery retains intermediate results.
Transparency provides another useful connection. A Mova experiment could expose which states are stored, which are reconstructed, and where reconstruction differs numerically from the original forward computation. The paper’s gradient comparison suggests a way to evaluate such an experiment: check whether reconstruction changes derivatives, then check whether those changes alter learning. For a system interested in interpretability, making these computational choices inspectable would be more informative than describing reversibility as an unexplained memory optimization.
The paper’s proposed recurrent extension is particularly relevant to possible work in natural language processing. The authors argue that shared parameters can make activation storage especially important in recurrent computation, and they identify reversible recurrent architectures as future work. That is an invitation to investigate, not evidence that the extension has already succeeded. For Mova, the honest takeaway is a research direction: consider reversible state updates if a future learning component needs them, then validate recoverability, gradient behavior, memory use, and task performance together.
The problem and its context
Why training retains so much information
A neural network’s forward pass transforms an input through successive intermediate representations until it produces an output and a cost. Training then asks how changing each parameter would change that cost. Back-propagation answers this by moving through the computation in the opposite direction, combining local derivatives with the influence already calculated for later operations.
Those local derivatives frequently depend on values produced during the forward pass. A straightforward implementation therefore keeps the relevant activations available. The memory burden grows as the computation becomes deeper or wider. This is different from the space needed to hold the parameters themselves: even when a network’s parameters fit comfortably, the saved intermediate states for a training batch can become the limiting resource.
The authors place this problem in the setting of increasingly deep convolutional networks. Residual connections had made networks with hundreds of layers trainable, and the introduction discusses architectures extending beyond one thousand layers. The success of depth created an accompanying systems problem. More computational stages meant more activations to retain, and larger representations increased the amount saved at each stage.
Limited graphics memory could force inconvenient choices. The paper describes distributing training across multiple GPUs as expensive and complicated. It also points to applications using a mini-batch size of 1 because larger batches would not fit. A mini-batch is the group of examples processed together for an update. In the authors’ account, severe restrictions on that group size can make stochastic optimization inefficient.
The concern therefore goes beyond whether a network can be represented at all. Memory constrains the combinations of depth, width, input size, and batch size that can be trained. A method that reduces saved activations can make a different region of that design space accessible. It need not reduce the number of parameters or improve classification accuracy directly to be valuable.
What residual connections had already solved
The paper describes exploding and vanishing gradients as a central obstacle to deep learning. When many nonlinear transformations are composed, the dependence of a distant output on an early activation can become difficult to propagate reliably. Gradients may become unstable or too weak to support effective learning.
Highway networks addressed this through skip connections. Residual networks used a related idea: a block produces its output by adding a learned residual transformation to its input. The direct path gives information and gradient signals a route through the block that does not depend entirely on the learned transformation.
That improvement concerns the behavior of the computation and its derivatives. It does not remove the need to retain intermediate activations under ordinary back-propagation. A conventional residual block still participates in a larger forward history, and its input is not generally recoverable simply by subtracting a known output-side quantity.
The paper presents residual networks as successful across several visual tasks and notes residual constructions in audio generation and neural translation. These examples motivate adapting a familiar architecture instead of proposing a completely unrelated memory-saving system. RevNet preserves an additive structure while rearranging it so that the block can be inverted explicitly.
Earlier approaches to reducing activation storage
The related-work discussion describes several ways to reduce memory consumption without making the architecture reversible. Some work improves allocation inside training frameworks. Such changes can prevent waste, but they do not necessarily remove the underlying dependence on the forward history.
Checkpointing takes a more direct approach. It stores selected activations and recomputes the missing ones when back-propagation needs them. A checkpoint divides the computation into regions that can be regenerated from their saved starting points. This exchanges additional forward computation for less retained state.
The paper discusses a checkpointing strategy that stores regularly spaced states, a recursive strategy that applies the same idea within smaller regions, and a dynamic-programming approach that chooses a storage schedule for a given memory budget. Their shared principle is to revisit portions of the forward computation instead of keeping everything.
RevNet makes a different architectural commitment. Instead of returning to an earlier checkpoint and replaying forward to recover a missing state, it reconstructs that state from the later one. This allows a reversible sequence to be traversed backward while keeping only the state currently needed. Checkpointing remains a broader option because it does not require the same reversible block structure.
The authors also discuss synthetic gradients. In that approach, a learned estimator supplies an approximation to the gradient using local activations, reducing dependence on a distant error signal. The paper notes that the estimators must themselves be trained and that this training requires retaining the activations. RevNet keeps the usual global training objective and chain-rule computation, while changing how intermediate values become available.
Reversibility before RevNet
The paper draws its architectural inspiration from NICE, a generative approach built around invertible transformations. NICE divides a representation into groups, leaves one group unchanged, and updates another by adding a function of the unchanged group. Because the conditioning group remains available, the update can be undone by subtraction.
That earlier use of reversibility serves a different purpose. The paper explains that an invertible transformation with a tractable Jacobian determinant supports likelihood calculations. NICE’s additive transformation has a unit determinant, restricting it to volume-preserving mappings. The related affine construction introduces multiplication and addition, allowing a non-unit determinant.
RevNet borrows the recoverable coupling pattern, then uses it to support memory-efficient back-propagation. Its main empirical question is discriminative classification under an architectural constraint. It does not use reversibility to claim the likelihood properties or generative capabilities discussed in that earlier line of work.
This distinction clarifies what is new in the argument. The paper does not introduce the general idea that neural transformations can be invertible. It shows how a reversible residual architecture can make the intermediate state needed for back-propagation recoverable, and it tests whether that architectural choice preserves useful classification behavior.
The method, step by step
The method has an architectural part and an execution part. The architecture ensures that a block’s inputs can be recovered from its outputs. The execution procedure uses that property during the backward pass and avoids retaining the complete forward history. Both parts are necessary: recoverable states do not save memory if the implementation continues to store them.
Training through reversible residual blocks
The steps in order.
Start with the ordinary residual block
A conventional residual block adds a transformation to the input:
y = x + F(x)
Here, x is the block’s input activation, y is its output activation, and F is the residual function. The addition combines the direct input path with the result of the learned transformation. F is typically a shallow neural computation rather than a single elementary operation.
This equation is straightforward to evaluate forward. It does not, however, provide an equally straightforward recovery rule for x given y. The unknown x appears both directly and inside F. RevNet changes the arrangement so that the transformation needed for subtraction can be evaluated from values already available during reconstruction.
The residual functions used in the paper are built from batch normalization, a rectified linear activation, and convolutions. The activation preparation is written as:
a(x) = ReLU(BN(x))
The symbol a denotes the combined preparation operation. BN means batch normalization, and ReLU is the rectified linear activation. Their role here is to define the internal residual computation; neither operation is required to have an inverse for RevNet’s block reconstruction.
A convolutional stage is expressed as:
cₖ(x) = Convₖ×ₖ(a(x))
The function cₖ applies the preparation operation and then a convolution with a k × k filter. Conv denotes that convolution, and k specifies its filter size. The subscript distinguishes convolutional stages by their spatial filter dimensions.
The basic residual function composes convolutional stages as follows:
Basic(x) = c₃(c₃(x))
Basic denotes the basic residual-function variant. Each c₃ is a convolutional stage of the form just defined, using a filter size of 3. The inner stage acts first, and its output becomes the outer stage’s input.
The bottleneck alternative is:
Bottleneck(x) = c₁(c₃(c₁(x)))
Bottleneck names the other residual-function variant. The initial point-wise convolution reduces feature dimensionality, the middle convolution performs the spatial transformation, and the final point-wise convolution projects to the required output depth. These functions provide the internal computations used in the residual architecture.
Understand additive coupling
The earlier NICE construction offers a simple example of an explicitly invertible arrangement. Its unchanged group is defined by:
y₁ = x₁
The symbols x₁ and x₂ denote groups obtained by partitioning the input, while y₁ and y₂ denote the corresponding output groups. In this equation, the first group passes through unchanged.
The other group receives an additive update:
y₂ = x₂ + F(x₁)
F is a transformation evaluated on the first input group. Because y₁ preserves x₁, the transformation can be evaluated again during reversal, allowing its contribution to be removed from y₂. The inverse does not require an inverse of F.
The paper also presents the affine extension:
y₂ = x₂ ⊙ exp(F(x₁)) + G(x₁)
The first output group remains the unchanged group defined above. G supplies an additive transformation, exp denotes the exponential operation, and ⊙ means element-wise multiplication. The multiplicative term changes the determinant property that constrained the additive construction. RevNet’s own blocks use additive coupling instead of this affine update.
Update both groups in a reversible order
RevNet partitions the activations along the channel dimension. The authors explored other partitions, but report that channels worked best. The important structural condition is that the groups can be updated in sequence while leaving the values needed for reversal available.
The first update is:
y₁ = x₁ + F(x₂)
The first output group y₁ combines the first input group x₁ with a residual function of the second input group x₂. F denotes that residual function. Unlike NICE’s unchanged first group, this group now receives a learned update.
The second update is:
y₂ = x₂ + G(y₁)
The residual function G operates on the already updated first group y₁. Its result is added to x₂ to produce y₂. The order is essential: G receives y₁, and that value is part of the block’s output.
Given both outputs, reconstruction begins with the second input group:
x₂ = y₂ − G(y₁)
The output y₁ supplies everything needed to evaluate G. Subtracting its result from y₂ recovers x₂ in exact arithmetic. No earlier activation is needed for this step.
The recovered x₂ then makes the first input group available:
x₁ = y₁ − F(x₂)
F is evaluated on the reconstructed second group, and its contribution is subtracted from y₁. Together, these operations reverse the block without solving an implicit equation.
This arrangement explains why the residual functions themselves need not be invertible. The reconstruction never asks which input to F or G produced a particular transformation output. It evaluates each function in its ordinary direction on a conditioning value that is already known.
Preserve information inside reversible sequences
The authors require a stride of 1 inside reversible blocks. A larger stride would discard information and break the recovery argument used by these equations. Practical image classifiers still need operations that change resolution, so the architecture retains some non-reversible layers.
The strategy is to save the inputs associated with those non-reversible operations and reconstruct activations inside the sequences between them. If greater depth is obtained by extending reversible sequences while leaving the non-reversible boundaries unchanged, retained activation storage does not grow with that added depth.
This is a conditional architectural statement. It depends on what is being extended and what remains fixed. Increasing width changes the size of a state, while adding more non-reversible boundaries creates more states that must be retained. The paper’s central result concerns the number of saved activations along the reversible depth dimension.
The classifier therefore need not be invertible from its final prediction all the way back to its original image. The useful property is local to the reversible portions. Ordinary layers can surround or separate those portions, provided their required activations are handled explicitly.
Distinguish values from their roles in differentiation
For the gradient derivation, the authors introduce an intermediate variable:
z₁ = x₁ + F(x₂)
The symbol z₁ denotes the updated first group before its role as an output is separated from its role as input to G. Numerically, it is the same value that becomes y₁.
The corresponding output assignment is:
y₁ = z₁
Though y₁ and z₁ have equal values, they occupy different positions in the computation graph. A computation graph records which operations depend on which earlier values. The cost can depend on z₁ through both the direct output assignment and the route through G.
The second output is therefore expressed using the intermediate node:
y₂ = x₂ + G(z₁)
This form exposes the additional route through which z₁ can influence the cost. A total derivative associated with z₁ includes that route, whereas the derivative arriving at the output node y₁ does not yet include it.
That distinction prevents a common conceptual mistake: equal numerical values do not necessarily have equal accumulated derivatives when they represent different nodes. The backward procedure must combine contributions from every relevant downstream use.
Recover state, then apply the chain rule
The paper treats back-propagation as reverse-mode automatic differentiation. Each node receives a derivative describing how the final cost changes when that node changes, including effects transmitted through later operations.
Its general rule can be written as:
v̄ᵢ = Σⱼ∈children(i) (∂fⱼ/∂vᵢ)ᵀ v̄ⱼ
The symbol vᵢ denotes a node value, and v̄ᵢ denotes the total derivative of the cost with respect to that value. The set children(i) contains nodes that directly use vᵢ. The function fⱼ computes child node j, and ∂fⱼ/∂vᵢ is its Jacobian with respect to vᵢ. The superscript T means transpose. The summation combines derivative contributions from all direct uses.
The reversible backward procedure begins with the output groups and the cost derivatives already associated with them. It reconstructs the input groups, then evaluates the local derivative relationships needed to propagate gradients to those inputs and to the parameters of F and G.
The intermediate z₁ receives the derivative arriving through y₁ together with the contribution arriving through G from y₂. The second input group receives the contribution through F as well as the direct additive route into y₂. The first input group inherits the derivative passing through its direct addition into z₁.
The paper assumes distinct parameters for the residual functions to keep its notation simple. It states that the procedure can be extended to shared parameters, including a recurrent setting. That extension requires combining parameter-gradient contributions appropriately; the image experiments do not test the recurrent case.
Repeated application of the block procedure moves backward through a complete reversible sequence. Each reconstructed input becomes the output state needed to reverse the preceding block. Temporary calculations can then be released instead of accumulating across the entire depth.
Control what automatic differentiation follows
The TensorFlow implementation constructs the backward computation explicitly while still relying on automatic differentiation inside the residual functions. The authors first reconstruct the block inputs from its outputs.
They then apply tf.stop_gradient to those reconstructed inputs. This prevents automatic differentiation from treating the reconstruction history as the path through which to calculate the desired local derivatives. The implementation can instead regard the recovered values as the inputs of a fresh local forward calculation.
That local forward calculation produces reconstructed outputs, and automatic differentiation propagates from them to the reconstructed inputs and residual-function parameters. This avoids manually deriving the internal derivatives of every possible F and G.
The distinction matters because state reconstruction and differentiation serve different purposes. Reconstruction supplies the numerical values needed for a block. The derivative computation represents the block’s original forward dependency structure. Allowing the framework to traverse an unintended reconstruction history would undermine that modular separation.
The implementation is convenient but not maximally economical in arithmetic. The authors explain that residual-function work performed during reconstruction can be reused for differentiation. Their simpler approach repeats more of that work, increasing the cost relative to the more carefully reused procedure.
The paper identifies an official public implementation in its code repository. Its sample implementation illustrates explicit forward and backward loops, parameter storage, reconstructed states, and local gradient calculations. The main methodological lesson is the division of responsibility, instead of any particular command or software interface.
Account for recomputation honestly
The operation-count discussion uses N to denote the number of network connections. Under that accounting, ordinary forward propagation costs approximately N add-multiply operations, while its backward pass costs roughly 2N. The reversible procedure costs approximately 4N overall because residual functions must be evaluated again.
The authors describe this as roughly 33% additional computation relative to ordinary back-propagation. They also note that practical GPU costs can differ from the simplified arithmetic accounting: when forward and backward work are similarly expensive, the overhead is closer to 50%.
Their convenient TensorFlow construction costs 5N, compared with 4N for the more efficient reversible procedure and 3N for ordinary training under the same connection-based accounting. These are theoretical operation estimates, not measured classification results.
A separate comparison normalizes forward and backward work per layer. For L identical layers, ordinary training has computational cost 2L and activation storage L. The checkpointing method discussed by the authors uses storage 2√L and computational cost 3L. The recursive approach has logarithmic storage and computational cost O(L log L).
Under those assumptions, the reversible method has computational cost 3L and activation storage O(1). Here, L denotes depth, and O describes how a resource scales as depth changes. Constant activation storage means the retained reversible state need not increase with L; it does not mean the whole training process uses a fixed amount of memory under every architectural change.
Make the memory advantage real
The appendix describes an implementation using TensorFlow Tensor Handles to preserve selected values between execution calls. The computation graph is divided into sections, with boundary activations and gradients kept available while unnecessary internal values are released.
This design matters because a framework may otherwise retain values that the reversible algorithm does not need. Executing sections separately gives the implementation control over which intermediate states remain live.
The other implementation represents residual stacks using tf.while_loop with back_prop set to False. Both the forward and backward loops are arranged so that the framework discards expired intermediate activations rather than constructing its ordinary stored history.
These are implementation mechanisms for achieving the algorithm’s intended storage behavior. The memory claim depends on them releasing values at the appropriate time. The paper explicitly warns that fully obtaining the theoretical savings can require careful low-level GPU memory management.
Recognize the arithmetic qualification
The inverse equations are exact over exact arithmetic. The actual experiments use float32, so repeated additions, function evaluations, and subtractions can accumulate numerical discrepancies.
The authors propose fixed-point arithmetic for the state variables as a possible response if that error becomes problematic, while retaining ordinary floating-point evaluation inside F and G. They describe this as a way exact reconstruction could be obtained in principle without changing the dominant residual-function work.
That proposal is distinct from the demonstrated floating-point procedure. The empirical question is whether the observed reconstruction error damages training, and the paper addresses it through a controlled comparison instead of assuming that algebraic reversibility settles the issue.
Experiments and results
Compare similar-capacity architectures
The experiments use CIFAR-10, CIFAR-100, and ImageNet. The central comparison is between reversible networks and conventional ResNets with approximately aligned computational depth and parameter counts. The goal is to determine whether the reversible architecture preserves classification performance while reducing retained activations.
A reversible block contains the sequential work of the coupled residual functions. The authors observe that its computational depth corresponds to that of a pair of original residual blocks. They therefore reduce the block count approximately by half and roughly double the channels, which are then partitioned within the reversible block.
This architectural adjustment is important for interpreting the results. Simply matching the number of named blocks would not match the computational structure. Likewise, a memory comparison would be less informative if the reversible system had been made substantially smaller without acknowledging the change.
The ImageNet training-curve comparison specifically names ResNet-101 and RevNet-104. The authors describe these as having approximately matched depth and numbers of free parameters. Their reported comparison therefore concerns a deliberate attempt at similar capacity, rather than an assertion that every architectural detail is identical.
CIFAR training conditions
For CIFAR-10 and CIFAR-100, the mini-batch size is 100. The initial learning rate is 0.1, with factor-of-10 reductions at 40K and 60K steps. Training continues for 80K steps.
The momentum setting is 0.9. Weight decay is specified as:
2 × 10⁻⁴
This is the coefficient used for weight decay in the CIFAR experiments. The multiplication sign and exponent express the setting reported by the authors; it is not a derived performance quantity.
Preprocessing subtracts the mean image. Data augmentation uses random crops and random horizontal flips. These details establish the training conditions under which the reversible and conventional architectures are compared.
The paper reports classification error for the CIFAR datasets, but its numerical discussion does not enumerate the individual error entries. Its written conclusion is that the reversible architectures closely match conventional residual networks of comparable size.
ImageNet training conditions
The intended ImageNet mini-batch size is 256, distributed across 4 Titan X GPUs. Training uses synchronous SGD with momentum 0.9 and runs for 600K steps.
Learning-rate reductions by a factor of 10 are scheduled at 160K, 320K, and 480K steps. The ImageNet weight-decay coefficient is:
1 × 10⁻⁴
This coefficient belongs to the ImageNet training setup. It differs from the coefficient reported for CIFAR, so the settings should not be treated as a single shared recipe.
The augmentation follows the Inception preprocessing described by the authors. Pixel intensities are rescaled to [0, 1]. Random crops have dimensions 224 × 224 and are taken around object bounding boxes. The training pipeline also uses random scaling, horizontal flipping, and color distortion.
The ordinary ResNet-101 does not fit the intended mini-batch of 256 across the 4 GPUs. The authors instead average gradients from serial executions using a mini-batch of 128, corresponding to 32 examples per GPU.
The RevNet accommodates the intended mini-batch of 256, corresponding to 64 examples per GPU. This establishes a practical capacity difference in the reported training setup. It does not by itself measure the total memory occupied by every allocation.
ImageNet training setup, examples fitting per GPU
The reversible network accommodates a larger per-GPU training batch.
The numbers
| System or setting | images per GPU |
|---|---|
| ResNet-101 | 32 |
| RevNet (this paper) | 64 |
Classification performance
The principal predictive result is close agreement between reversible and conventional residual networks. The authors state that their ResNet implementation roughly reproduces previously reported error rates, then compare RevNets against their own approximately matched baselines.
Across their conditions, they report no case in which RevNet’s classification error is worse by more than 0.5%. Some comparisons favor the reversible architecture slightly. The paper’s conclusion is therefore that reversibility imposes little or no observable classification penalty in these experiments.
The individual CIFAR and ImageNet error values are not enumerated in the numerical narrative. It would be inappropriate to replace them with remembered benchmark results or to invent an accuracy chart. The supported quantitative statement is the reported bound on underperformance, together with the explicitly stated capacity and training settings.
For ImageNet, the error metric is single-crop top-1 classification error. Top-1 error concerns whether the highest-ranked predicted class is wrong. The training-curve comparison also tracks cross-entropy, the cost used to evaluate the quality of the predicted class distribution during learning.
The authors report similar learning behavior per iteration for the matched ImageNet architectures. This means the reversible constraint did not visibly impair progress as a function of updates. It should be read alongside their separate statement that each reversible update is more expensive.
Memory demonstrations beyond the main training setup
The appendix reports another practical capacity result using the segmented TensorFlow execution approach. In that implementation, the reversible system fits 128 ImageNet images per GPU, while the original ResNet fits 32.
This result belongs to a different implementation discussion from the main training configuration. It should not be merged with the earlier capacity result as though the same execution setup simultaneously used all the reported batch sizes.
ImageNet graph-splitting implementation, examples fitting per GPU
Explicit control of activation lifetimes enables a larger reversible training batch.
The numbers
| System or setting | images per GPU |
|---|---|
| Original ResNet | 32 |
| RevNet with graph splitting (this paper) | 128 |
The graph-splitting mechanism introduces around 10% computational overhead, according to the appendix. That overhead concerns the execution strategy used to release memory and preserve boundary tensors. It is not a complete replacement for the separate cost of reversible recomputation.
The loop-based implementation provides a further feasibility demonstration: the authors train a 600-layer RevNet for ImageNet on a single GPU. They describe the process as prohibitively slow. The result shows that a very deep reversible architecture can fit under that implementation; it does not establish that this is an efficient way to finish competitive training.
Learning progress and computational expense
The paper explicitly separates predictive behavior from update cost. Its reported per-update expense is about 1.5–2 times that of conventional training, depending on implementation. Reversibility reduces stored activations by doing additional work.
This creates a practical tradeoff rather than a universal speed improvement. A larger batch or architecture may become feasible because memory is available, but whether that produces a better overall training process depends on the workload and execution details.
The experiments support memory-efficient training with comparable classification behavior. They do not provide a universal throughput figure, a comprehensive allocation breakdown, or a guarantee that every reversible configuration is faster in elapsed time.
What the ablations show
Reconstructed activations versus stored activations
The most direct controlled analysis concerns numerical reconstruction. The authors compare gradients calculated from stored forward activations with gradients calculated after recovering those activations through the reversible equations.
This comparison isolates an issue that the main ResNet-versus-RevNet experiment cannot isolate by itself. Architectural changes and numerical reconstruction are different sources of possible performance differences. Holding the reversible architecture in view while changing how its activations become available tests the reconstruction procedure more directly.
The measured quantity is the angle between the gradient vectors. If reconstruction altered the derivatives substantially, the direction supplied to the optimizer could differ from the direction obtained with stored activations. The angle therefore gives a view of whether accumulated numerical error changes the training signal.
For a CIFAR-10 RevNet, the authors find that this angle grows during training but remains small. The figure description gives no numerical angle that can be reported as an exact result. The supported conclusion is qualitative: discrepancy increases, yet remains limited in the measured experiment.
Does the discrepancy change learning?
The authors also train with the alternative gradient-computation procedures and compare cross-entropy and classification error. Their reported trajectories and final outcomes are almost indistinguishable.
This is an important additional check. A small gradient difference does not automatically imply harmlessness, because an optimizer repeatedly applies the resulting updates. The training comparison tests whether those repeated differences become consequential for the task.
The figure description notes 4 additional epochs of observation beyond the regular training duration, without observed instability. This provides a limited check against an obvious late-training failure in that setting. It does not amount to a general numerical stability proof.
The analysis supports using the floating-point reconstruction procedure in the tested CIFAR-10 configuration. It does not establish that all depths, arithmetic choices, or residual functions would behave identically. The authors’ fixed-point suggestion remains a proposed alternative if reconstruction error becomes a practical concern.
How to partition the activations
The authors explore partitions based on channels, rows, columns, and a checkerboard arrangement. They report that the channel-based choice consistently performs best, while the remaining choices are comparable to one another.
This comparison helps explain a specific architectural decision. Reversibility alone does not dictate how the representation must be divided. The partition changes which information is available to each residual transformation, so alternative reversible arrangements can still behave differently.
The paper does not supply numerical partition results in its written discussion. The evidence supports the selected channel partition, but not a precise estimate of its advantage or a broader theory explaining why it wins.
For reuse, the practical implication is modest and valuable: a reversible construction still contains ordinary architecture choices that should be evaluated. The inverse equations guarantee recoverability under their assumptions; they do not guarantee equal predictive quality for every partition.
What the main architecture comparison isolates
The approximately matched ResNet and RevNet experiments test whether imposing the reversible structure creates a substantial classification penalty. Their close results show that this particular constraint is compatible with strong performance on the chosen image tasks.
They do not isolate every ingredient inside the block. The paper does not present a numerical decomposition attributing performance to separate residual functions, individual normalization choices, or a complete range of storage schedules.
Similarly, the appendix’s execution variants demonstrate that implementation choices can unlock different memory outcomes. They are useful engineering comparisons, but they do not form a uniform benchmark in which every runtime and memory component is varied independently.
Taken together, the analyses answer complementary questions. Architecture matching addresses predictive capacity under reversibility. Stored-versus-reconstructed gradients address numerical consequences. Partition experiments address representation layout. Execution variants show why the theoretical storage argument requires deliberate memory management.
Limitations
Limits stated by the authors
The first stated qualification is arithmetic. Exact reconstruction is an algebraic property, while practical float32 reconstruction accumulates error. The authors observe that error and test its consequences instead of claiming bit-for-bit recovery in the implemented system.
Their fixed-point alternative is presented as a possible way to obtain exact state recovery. It is not the basis of the classification evidence. A reader should distinguish the demonstrated tolerance of numerical discrepancies from the proposed route to eliminating them.
The second qualification is architectural. Reversible blocks cannot use the information-discarding stride changes excluded by the construction. Activations at non-reversible layers must still be stored. The memory result therefore applies most naturally to architectures with long reversible stretches and relatively few such boundaries.
The third qualification is computational. Re-evaluating the residual functions costs work, and the convenient automatic-differentiation implementation performs additional redundant computation. The paper does not claim that memory savings arrive without a training-time penalty.
The fourth qualification is practical implementation. Achieving the theoretical storage behavior can require careful memory control below the level of the block equations. The appendix’s graph segmentation and loop implementations address that issue, while also showing that fitting a large network does not guarantee an attractive training speed.
The authors explicitly leave semantic segmentation and reversible recurrent architectures for future work. Their discussion explains why those directions may benefit from activation savings, but no experiments in those settings establish the benefit.
Limits of what the experiments establish
A careful reader should separate activation storage from total memory use. Parameters still need storage, and the backward pass must also produce parameter gradients. Temporary residual-function activations and saved non-reversible boundaries remain relevant.
As a result, depth-independent activation storage does not imply depth-independent total training memory. Adding distinct parameterized blocks adds parameter-related costs even if their intermediate states need not all remain resident.
The experiments also cover a particular task family. CIFAR and ImageNet classification provide useful evidence that the reversible constraint need not destroy discriminative performance. They do not establish a result for language processing, generation, or every kind of dense visual prediction.
The approximately matched architecture comparison is well suited to the paper’s central question, but it is not an exhaustive architecture search. It shows that the authors found reversible designs with closely matched classification behavior. It does not show that reversibility leaves every architecture’s best attainable performance unchanged.
The numerical analysis is also narrower than a general guarantee. It examines a CIFAR-10 RevNet, compares gradient directions, and checks learning behavior. More extreme depths or different arithmetic choices could require their own investigation. The paper’s empirical result should not be elevated into an unconditional stability claim.
Limits of the reported measurements
The memory demonstrations are expressed in part through the number of examples that fit per GPU. That is a concrete and useful outcome, but it is not a complete accounting of allocation sizes. It shows practical capacity under the reported implementations and hardware.
The main training setup and the appendix’s graph-splitting setup have different capacity figures. Their distinction matters because framework behavior forms part of the result. A single universal memory multiplier would hide those implementation conditions.
The classification discussion supplies a bound on how much worse a RevNet performs relative to its paired baseline, but does not enumerate every error value in its numerical narrative. The general statement of close performance is supported; detailed rankings among every tested architecture cannot be reconstructed from that statement alone.
Likewise, the 600-layer single-GPU demonstration establishes feasibility under a memory budget, while its reported slowness limits the engineering conclusion. Memory capacity and useful training throughput remain separate outcomes.
What reversibility does not mean
The reversible internal blocks do not make the final classifier a lossless record of its input. Non-reversible operations remain part of the architecture, and classification itself is not presented as an invertible task.
Nor does reconstructing the state turn back-propagation into an unrelated optimization method. The training signal still comes from the cost and the chain rule. RevNet changes the availability of intermediate values, not the fundamental definition of the gradient being sought.
Finally, the paper does not establish an interpretation of the learned features merely because their internal transformations are reversible. Recoverability is a computational property. Understanding what a representation means would require different evidence.
These distinctions keep the contribution precise: a carefully arranged architecture can replace much of its retained activation history with recomputation, while preserving classification behavior in the experiments the authors conduct.
What came after
The later citation record extends across representation learning, sequence architectures, optimization memory, and training systems. It shows that RevNet became relevant to a broad discussion about computational resources. A citation alone, however, does not establish which component a later work adopted. The technical accounts available for these later papers consist of their titles and their citation relationship to RevNet, so the connections below distinguish subject matter from demonstrated architectural inheritance.
Efficient sequence architectures
Reformer is listed as a 2020 work on an efficient Transformer. Its subject places it close to RevNet’s general concern with making demanding neural computations more manageable. The citation establishes that it engages with the earlier paper. It does not, on its own, establish the exact reversible construction, memory analysis, or experimental benefit used in Reformer.
The relevant architectural background for that title is Transformer and attention. RevNet’s contribution to the discussion is a specific way of reducing saved intermediate state. Whether a later Transformer paper uses that method directly, modifies it, or cites it as a related efficiency approach requires a technical account beyond the citation entry.
ALBERT appears in the list as a 2019 work whose title emphasizes a lighter BERT architecture for learning language representations. That identifies a later setting in which resource use matters. It does not justify attributing RevNet’s activation-reconstruction procedure to ALBERT, or treating reduced parameter storage and reduced activation storage as the same mechanism.
ETC is a 2020 work on encoding long, structured inputs with Transformers. The input-length focus identifies another setting where computational organization is important. The citation relationship is clear, but the entry does not specify whether reversibility is an implemented component, a comparison, or background motivation.
These works make a useful conceptual distinction visible. An efficient architecture can change the amount of state created, the amount retained, or the work required to process it. RevNet supplies evidence about retained activations. A later paper’s efficiency-oriented title does not establish that it solves the same resource problem in the same way.
Visual representation learning
Momentum Contrast is listed as a 2019 contribution to unsupervised visual representation learning. Its citation connects RevNet to research beyond the supervised image-classification experiments in the original paper. The entry does not describe an adoption of reversible blocks, so that connection should remain a documented citation instead of an asserted implementation detail.
Revisiting Self-Supervised Visual Representation Learning is another 2019 citing work in visual representation learning. Its title indicates a reassessment of self-supervised approaches. There is no accompanying technical description that would support saying how reconstruction, memory control, or architectural reversibility enters its experiments.
Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup has the closest explicitly stated problem connection in this group. The 2021 title directly joins batch size with memory constraints. RevNet had already demonstrated why activation storage can restrict a batch and how an architectural change can permit more examples to fit. The later entry establishes a shared resource concern, while leaving its actual memory-saving mechanism unspecified.
The distinction matters because the original paper’s practical result is about what fits during training. Larger feasible batches are one consequence the authors demonstrate, instead of a universal claim about how batch size changes learning. The later contrastive-learning title identifies a related question without supplying evidence for transferring those conclusions unchanged.
Optimization and training infrastructure
8-bit Optimizers via Block-wise Quantization is listed as a 2021 citing work. Its title identifies quantization in an optimizer as its subject. That is a different named route into the broader memory problem from RevNet’s reconstruction of activations.
The available entry does not establish how the methods are combined or compared. The useful connection is that training memory has multiple components, and a contribution directed at optimizer representation should not be described as equivalent to one directed at saved forward states.
Tensor2Tensor for Neural Machine Translation appears as a 2018 citing work. Its title places the citation in a training and translation context. The record does not identify a specific reversible implementation, so there is no supported basis for claiming that its translation experiments reproduce RevNet’s memory behavior.
Later efficiency discussions
Parameter-Efficient Fine-Tuning is listed as a comprehensive survey from 2024. Its subject concerns parameter-efficient adaptation. The citation shows that RevNet remains part of the wider literature relevant to efficient learning, but the entry does not identify the survey’s treatment of reversible activation storage.
Cross-layer Attention Sharing is listed as a 2026 work. Its title names sharing attention across layers as the central subject. Sharing computations or parameters and reconstructing activations are distinct ideas; their relationship in that work cannot be established from the title alone.
Across these later citations, the durable contribution is the resource question RevNet made concrete. A deep computation need not retain every intermediate activation if its architecture permits those values to be recovered. The original paper demonstrates that principle in image classification, provides a backward procedure, and shows why numerical behavior and memory management belong in the evaluation. The later citation record documents the idea’s relevance across several research settings, while leaving the details of each later adoption to the evidence in those works.
Cite
Cite as Aidan N. Gomez, Mengye Ren, Raquel Urtasun and Roger Grosse. 2017. The Reversible Residual Network: Backpropagation Without Storing Activations. arXiv (Cornell University).
@misc{gomez2017reversible,
title = {{The Reversible Residual Network: Backpropagation Without Storing Activations}},
author = {Aidan N. Gomez, Mengye Ren, Raquel Urtasun and Roger Grosse},
year = {2017},
doi = {10.48550/arxiv.1707.04585},
eprint = {1707.04585},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1707.04585}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/gomez-2017-reversible-residual-network-backpropagation-without/
References
- M. Abadi, A. Agarwal, P. Barham, E. Brevdo, Z. Chen, C. Citro, G. S. Corrado, A. Davis, J. Dean, M. Devin, et al. TensorFlow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016. our card
- R. Al-Rfou, G. Alain, A. Almahairi, C. Angermueller, D. Bahdanau, N. Ballas, F. Bastien, J. Bayer, A. Belikov, A. Belopolsky, et al. Theano: A Python framework for fast computation of mathematical expressions. arXiv preprint arXiv:1605.02688, 2016. our card
- Y. Bengio, P. Simard, and P. Frasconi. Learning long-term dependencies with gradient descent is difficult. IEEE transactions on neural networks, 50 (2):0 157–166, 1994. OpenAlex ↗ · Scholar ↗
- J. Chen, R. Monga, S. Bengio, and R. Jozefowicz. Revisiting distributed synchronous sgd. arXiv preprint arXiv:1604.00981, 2016a. OpenAlex ↗ · Scholar ↗
- T. Chen, B. Xu, C. Zhang, and C. Guestrin. Training deep nets with sublinear memory cost. arXiv preprint arXiv:1604.06174, 2016b. OpenAlex ↗ · Scholar ↗
- F. Chollet. Xception: Deep learning with depthwise separable convolutions. arXiv preprint arXiv:1610.02357, 2016. OpenAlex ↗ · Scholar ↗
- J. Dean, G. Corrado, R. Monga, K. Chen, M. Devin, M. Mao, A. Senior, P. Tucker, K. Yang, Q. V. Le, et al. Large scale distributed deep networks. In NIPS, 2012. OpenAlex ↗ · Scholar ↗
- L. Dinh, D. Krueger, and Y. Bengio. NICE: Non-linear independent components estimation. 2015. OpenAlex ↗ · Scholar ↗
- L. Dinh, J. Sohl-Dickstein, and S. Bengio. Density estimation using real NVP. In ICLR, 2017. OpenAlex ↗ · Scholar ↗
- A. Gruslys, R. Munos, I. Danihelka, M. Lanctot, and A. Graves. Memory-efficient backpropagation through time. In NIPS, 2016. OpenAlex ↗ · Scholar ↗
- K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770–778, 2016. our card
- S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015. OpenAlex ↗ · Scholar ↗
- M. Jaderberg, W. M. Czarnecki, S. Osindero, O. Vinyals, A. Graves, and K. Kavukcuoglu. Decoupled neural interfaces using synthetic gradients. arXiv preprint arXiv:1608.05343, 2016. OpenAlex ↗ · Scholar ↗
- N. Kalchbrenner, L. Espeholt, K. Simonyan, A. v. d. Oord, A. Graves, and K. Kavukcuoglu. Neural machine translation in linear time. arXiv preprint arXiv:1610.10099, 2016. OpenAlex ↗ · Scholar ↗
- A. Krizhevsky and G. Hinton. Learning multiple layers of features from tiny images. Technical report, University of Toronto, Department of Computer Science, 2009. OpenAlex ↗ · Scholar ↗
- A. Krizhevsky, I. Sutskever, and G. E. Hinton. ImageNet classification with deep convolutional neural networks. In NIPS, 2012. our card
- Y. LeCun, B. E. Boser, J. S. Denker, D. Henderson, R. E. Howard, W. E. Hubbard, and L. D. Jackel. Handwritten digit recognition with a back-propagation network. In Advances in neural information processing systems, pages 396–404, 1990. OpenAlex ↗ · Scholar ↗
- T.-Y. Lin, M. Maire, S. Belongie, J. Hays, P. Perona, D. Ramanan, P. Dollár, and C. L. Zitnick. Microsoft COCO: Common objects in context. In ECCV, 2014. our card
- D. Maclaurin, D. K. Duvenaud, and R. P. Adams. Gradient-based hyperparameter optimization through reversible learning. In ICML, 2015. OpenAlex ↗ · Scholar ↗
- J. Martens and I. Sutskever. Training deep and recurrent networks with Hessian-free optimization. In Neural networks: Tricks of the trade, pages 479–535. Springer, 2012. OpenAlex ↗ · Scholar ↗
- V. Nair and G. E. Hinton. Rectified linear units improve restricted Boltzmann machines. In ICML, 2010. OpenAlex ↗ · Scholar ↗
- L. B. Rall. Automatic differentiation: Techniques and applications. 1981. OpenAlex ↗ · Scholar ↗
- D. Rumelhart, G. Hinton, and R. Williams. Learning representations by back-propagating errors. Lett. Nat., 323:0 533–536, 1986. OpenAlex ↗ · Scholar ↗
- O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, et al. ImageNet large scale visual recognition challenge. IJCV, 1150 (3):0 211–252, 2015. our card
- L. Sifre. Rigid-motion scattering for image classification. PhD thesis, Ph. D. thesis, 2014. OpenAlex ↗ · Scholar ↗
- K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. our card
- R. K. Srivastava, K. Greff, and J. Schmidhuber. Highway networks. arXiv preprint arXiv:1505.00387, 2015. OpenAlex ↗ · Scholar ↗
- C. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. E. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich. Going deeper with convolutions. In CVPR, 2015. OpenAlex ↗ · Scholar ↗
- A. van den Oord, S. Dieleman, H. Zen, K. Simonyan, O. Vinyals, A. Graves, N. Kalchbrenner, A. Senior, and K. Kavukcuoglu. Wavenet: A generative model for raw audio. CoRR abs/1609.03499, 2016a. our card
- A. van den Oord, N. Kalchbrenner, L. Espeholt, O. Vinyals, A. Graves, et al. Conditional image generation with pixelCNN decoders. In NIPS, 2016b. OpenAlex ↗ · Scholar ↗
- R. J. Williams and D. Zipser. A learning algorithm for continually running fully recurrent neural networks. Neural computation, 10 (2):0 270–280, 1989. OpenAlex ↗ · Scholar ↗
- Z. Wu, C. Shen, and A. v. d. Hengel. High-performance semantic segmentation using very deep fully convolutional networks. arXiv preprint arXiv:1604.04339, 2016a. OpenAlex ↗ · Scholar ↗
- Z. Wu, C. Shen, and A. v. d. Hengel. Wider or deeper: Revisiting the ResNet model for visual recognition. arXiv preprint arXiv:1611.10080, 2016b. OpenAlex ↗ · Scholar ↗
- H. Zhao, J. Shi, X. Qi, X. Wang, and J. Jia. Pyramid scene parsing network. In CVPR, 2017. OpenAlex ↗ · Scholar ↗
- J.-Y. Zhu, T. Park, P. Isola, and A. A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. arXiv preprint arXiv:1703.10593, 2017. OpenAlex ↗ · Scholar ↗