Skip to main content
QUICK REVIEW

[Paper Review] Gradients as Features for Deep Representation Learning

Fangzhou Mu, Yingyu Liang|arXiv (Cornell University)|Apr 12, 2020
Domain Adaptation and Few-Shot LearningComputer Science45 references11 citations
TL;DR

This paper proposes a novel deep representation learning method that uses per-sample gradients of model parameters with respect to a task-specific loss as features, combining them with network activations in a linear model. The approach provides a local linear approximation to fine-tuning via Neural Tangent Kernel (NTK) theory and achieves state-of-the-art performance across unsupervised, self-supervised, and transfer learning tasks, outperforming both activation-only baselines and full fine-tuning in key settings.

ABSTRACT

We address the challenging problem of deep representation learning--the efficient adaption of a pre-trained deep network to different tasks. Specifically, we propose to explore gradient-based features. These features are gradients of the model parameters with respect to a task-specific loss given an input sample. Our key innovation is the design of a linear model that incorporates both gradient and activation of the pre-trained network. We show that our model provides a local linear approximation to an underlying deep model, and discuss important theoretical insights. Moreover, we present an efficient algorithm for the training and inference of our model without computing the actual gradient. Our method is evaluated across a number of representation-learning tasks on several datasets and using different network architectures. Strong results are obtained in all settings, and are well-aligned with our theoretical insights.

Motivation & Objective

  • To improve data efficiency in deep representation learning by leveraging task-specific gradient information from pre-trained networks.
  • To address the performance gap between representation learning and fully supervised training by incorporating gradient features into the feature representation.
  • To develop an efficient and scalable algorithm for training and inference without explicitly computing gradients.
  • To theoretically justify the method as a local linear approximation to fine-tuning using Neural Tangent Kernel (NTK) theory.
  • To empirically validate the method across diverse tasks, datasets, and network architectures.

Proposed method

  • The method constructs a linear model that jointly uses both the activation and gradient features from a pre-trained deep network.
  • Gradient features are defined as the gradients of the model parameters with respect to the task-specific loss for each input sample.
  • The model is theoretically grounded as a local linear approximation to fine-tuning, derived from Neural Tangent Kernel (NTK) theory for finite-width networks.
  • An efficient algorithm is designed to train and infer the model without explicitly computing gradients, leveraging implicit gradient computation via backpropagation.
  • The framework is general and applicable to vision, NLP, and speech tasks, with evaluation focused on visual representation learning.
  • The method combines activation and gradient features in a single linear classifier, enabling improved discriminative power over activation-only baselines.

Experimental results

Research questions

  • RQ1Can per-sample gradients of a pre-trained network serve as effective, discriminative features for downstream tasks?
  • RQ2How does combining gradient and activation features improve performance compared to using either alone?
  • RQ3To what extent does the proposed method approximate the performance of full fine-tuning?
  • RQ4How does the method's performance vary across different pre-training paradigms (unsupervised, self-supervised, transfer learning)?
  • RQ5Can the method achieve competitive results without explicitly computing gradients, while maintaining scalability?

Key findings

  • The proposed method outperforms the standard activation-based logistic regressor by a significant margin across all evaluated tasks and datasets.
  • On the CIFAR-10 dataset with a jigsaw pretext task, the method achieves 70.5% accuracy, surpassing the baseline and demonstrating strong generalization.
  • In transfer learning on VOC07 and COCO2014, the method outperforms fine-tuning by +0.8% and +3.0% respectively, indicating superior performance in semantically aligned tasks.
  • The gradient-only linear classifier performs competitively, often matching or exceeding the performance of the full model with both activation and gradient features in unsupervised settings.
  • The method maintains strong performance across diverse network architectures, including ResNet and BiGAN encoders, demonstrating broad applicability.
  • The results are well-aligned with theoretical insights, confirming that the model acts as a local linear approximation to fine-tuning via NTK theory.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.