Built to order

Efficient Transformer via NAS / quantization — IEEE Transactions 2025 Base Paper Project

This project builds an efficient vision transformer by combining neural architecture search (NAS) with post-training quantization, from a 2025 IEEE TPAMI base paper. The student searches a small architecture space for a compact transformer, compresses it to INT8 or INT4 without retraining, and measures the size, latency and accuracy trade-off. It ships with an efficiency-lab demo, the quantization pipeline, and the viva kit (report, PPT, Q&A). Suitable for B.E./B.Tech final-year projects in Computer Science, IT and AI & Machine Learning.

AI & Machine Learning Jupyter notebookHTML5 · CSS · JavaScript demoPython 3 · PyTorchVision Transformer timmPost-training quantization INT8 INT4Neural architecture searchONNX Runtime inferenceNumPy Matplotlib scikit-learnSoftware
Efficient Transformer via NAS / quantization — IEEE Transactions 2025 Base Paper Project — project thumbnail preview
More project photos (2)

The problem

Vision transformers deliver strong image-classification results, but their size and compute cost make them hard to run on ordinary laptops and edge hardware: a standard ViT-Base model carries roughly 86 million parameters and needs hundreds of megabytes in FP32 precision. Two established efficiency techniques address this — neural architecture search, which finds a smaller architecture instead of hand-picking one, and post-training quantization, which stores weights and activations in fewer bits without retraining. Students usually meet these ideas only as paper summaries and rarely implement either end to end. This project closes that gap: the student reproduces the quantization method of an IEEE Transactions paper, adds their own NAS search over depth, width and patch size, and evaluates the resulting models on a real dataset with honest size, latency and accuracy reporting. The deliverable is a working pipeline plus a lab demo that makes the trade-off visible, so the viva discussion rests on the student's measurements rather than borrowed claims.

This is a built-to-order software project: the NAS search code, quantization pipeline, evaluation notebook and the complete viva kit (report, PPT, Q&A) are prepared fresh for you.

Base paper at a glance

Item Detail
Paper Towards Accurate Post-Training Quantization of Vision Transformers via Error Reduction, IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2025, DOI: https://doi.org/10.1109/TPAMI.2025.3528042
Method ERQ, a two-step post-training quantization method that reduces activation-quantization error first, then weight-quantization error.
Dataset ImageNet-1K validation subset for the efficiency study, with CIFAR-100 as the lightweight alternative for laptop-scale runs.
Authors' reported results Authors' results, not this project's results: for W3A4 ViT-S, ERQ outperformed the state-of-the-art GPTQ in accuracy in the authors' experiments (the reported margin differs between paper versions, so it is stated qualitatively here). This project's own figures are measured during the build and reported separately.
What we implement The paper's post-training quantization procedure as described on this page: per-layer activation-range calibration on a small unlabelled calibration set, scale and zero-point assignment for weights and activations, and protection of quantization-sensitive layers (patch embedding and classifier) at higher precision, with the FP32 model frozen, weights rounded to INT8 or INT4, and no retraining in the quantization stage.
Own features The team's addition, distinct from the paper: NAS search over transformer shape (depth, width, patch size, heads, MLP ratio) with Pareto-optimal shortlist, budget-constrained model selection, mixed-precision per-layer policy, calibration-size study (128 to 4,096 images), and the interactive efficiency lab demo.

Base Paper

  • Paper: Towards Accurate Post-Training Quantization of Vision Transformers via Error Reduction
  • Journal: IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2025
  • DOI: https://doi.org/10.1109/TPAMI.2025.3528042
  • What is implemented from the paper: The paper's post-training quantization method for vision transformers — per-layer activation-range calibration on a small unlabelled calibration set, scale and zero-point assignment for weights and activations, and protection of quantization-sensitive layers (patch embedding and classifier) at higher precision. The implementation follows the paper's procedure: the FP32 model is frozen, calibration statistics are collected, weights are rounded to INT8 or INT4, and the quantized model is validated against the FP32 baseline on a held-out set. No retraining or fine-tuning is used in the quantization stage, exactly as in the paper.
  • What is NOT claimed from the paper: The paper's reported numbers are not reproduced here as this project's results. All accuracy, size and latency figures in this listing are design-target estimates or procedures the buyer runs; the report documents the actual figures measured during the build.

Own Features

The student's own contribution, clearly distinct from the base paper, is the NAS-driven architecture search wrapped around the paper's quantizer:

  • [NAS search over transformer shape] A search over encoder depth (6–16 layers), embedding dimension (192–768), patch size (8/16/32), attention heads and MLP ratio, scored on estimated size, latency and validation accuracy, with Pareto-optimal candidates shortlisted. The paper quantizes fixed architectures; the search is the student's addition.
  • [Budget-constrained selection] A deployment-budget rule: given a size cap (e.g. under 25 MB) or a latency cap, the search returns the best candidate that fits, instead of a single hand-picked model.
  • [Mixed-precision policy] A per-layer precision assignment: sensitive layers stay at INT8 while robust layers drop to INT4, with the accuracy cost of each assignment measured on the validation set. The paper's method is the quantizer; the mixed-precision policy search is the student's own layer.
  • [Interactive efficiency lab] A single-file web demo where bit-width, depth, width, patch size and calibration-set size are adjustable and size, latency and accuracy estimates update live, plus a NAS candidate table with Pareto-optimal rows highlighted. This demo is built for this project and is not part of the paper.
  • [Calibration-size study] A measured study of how the accuracy drop changes as the calibration set grows (128 to 4,096 images), giving the viva a genuine experiment with a plotted result the student produced.

How it works

The pipeline runs in seven stages from baseline to demonstrable result. First a vision transformer baseline is established so every later saving is measured against a real FP32 reference, not assumed. Then the architecture search explores depth, width and patch size and keeps only Pareto-optimal candidates, so the student can defend why one shape was chosen over the others. Quantization follows the base-paper procedure exactly — freeze the model, calibrate on unlabelled images, round weights to the target bit-width, and protect sensitive layers at higher precision. The quantized model is then evaluated on a held-out test set with size, latency and accuracy drop recorded, and the calibration-size study repeats that measurement across set sizes. Finally the results, the Pareto table and the trade-off plots go into the report, and the demo lab presents the same logic interactively for the viva.

  1. A vision transformer (ViT-Tiny/Small scale) is trained or fine-tuned on an image-classification dataset, establishing the FP32 baseline accuracy on a held-out test set.
  2. The NAS stage samples candidate architectures from the search space (depth, embedding dimension, patch size, heads, MLP ratio) and scores each on estimated size, latency and validation accuracy.
  3. Pareto-optimal candidates are shortlisted — architectures no other candidate beats on all three measures — and the best one under the chosen deployment budget is selected.
  4. The selected FP32 model is frozen and a calibration set of unlabelled images is run through it to record per-layer activation ranges.
  5. Weights and activations are quantized to INT8 (and, as a second variant, mixed INT8/INT4) using the calibrated scales, with the patch-embedding and classifier layers kept at INT8.
  6. The quantized model is evaluated on the held-out test set; size, latency and accuracy drop versus the FP32 baseline are recorded, and the calibration-size study is repeated across set sizes.
  7. Results, the Pareto table and the trade-off plots go into the report, and the efficiency-lab demo is wired to the same scaling logic for the viva demonstration.

Tech stack:

  • Python 3, PyTorch
  • timm vision transformer models
  • NumPy, Matplotlib, scikit-learn (metrics)
  • Jupyter Notebook (training · search · evaluation)
  • ONNX Runtime (quantized inference measurement)
  • HTML5 · CSS · JavaScript (efficiency-lab demo)

Dataset & model details

  • Dataset: ImageNet-1K validation subset for the efficiency study, with CIFAR-100 as the lightweight alternative for laptop-scale runs — both are standard public benchmarks; the exact subset used is recorded in the report. A selected subset is used for this implementation so the build fits a student laptop.
  • Task: Image classification; input = RGB image (224 × 224), output = probability distribution over classes, plus the efficiency measures (model size in MB, latency in ms per image, accuracy drop in percentage points).
  • Model: Vision transformer (ViT-Tiny/Small scale) as the FP32 baseline; NAS-selected variants of the same family; post-training quantization to INT8 and mixed INT8/INT4 following the TPAMI 2025 base-paper procedure.
  • Metrics: Top-1 accuracy, accuracy drop vs FP32 baseline (percentage points), model size (MB), latency per image (ms), compression ratio (×). No accuracy is claimed as measured until the build run is executed for the order; the report documents the actual achieved figures.
Parameter Value
Baseline model ViT-Tiny/Small scale, approximately 5–22 M parameters (design target)
Quantization Post-training INT8 and mixed INT8/INT4, no retraining (base-paper procedure)
Compression Approximately 4× at INT8 and 8× at INT4 vs FP32 (design target)
Accuracy drop Design target under 1 percentage point at INT8, under 3 at mixed INT4 (not a measured claim)
Latency Approximately 11–21 ms per image on a laptop CPU for ViT-Small scale (expected)
Calibration set 128–4,096 unlabelled images (configurable)
NAS search space Depth 6–16 · dim 192–768 · patch 8/16/32 · heads · MLP ratio
Work plan 105 hours across search, quantization, evaluation and documentation
Starting price Rs 26,000 (quotation; final price confirmed at order)

Project features

The feature set covers the full efficiency pipeline in one build: a base-paper quantization method that compresses a vision transformer without retraining, a neural architecture search that finds a compact shape instead of hand-picking one, and a budget rule that selects the model fitting a size or latency cap. Around these sit the student's own experiments — a mixed-precision policy that assigns bit-widths per layer, and a calibration-size study that measures how the accuracy drop changes with the calibration set. The deliverables make the work demonstrable: an interactive efficiency-lab demo, a reproducible evaluation notebook, and a complete viva kit with report, presentation and Q&A. Every feature below is part of the delivered build; optional extensions such as quantization-aware training are kept in Future Scope in the report, not listed here.

  • [Post-training quantization pipeline] FP32 vision transformer converted to INT8 and INT4 with per-layer calibration, scale/zero-point assignment and sensitive-layer protection, following the TPAMI 2025 base-paper procedure.
  • [NAS architecture search] Automated search over depth, width, patch size, heads and MLP ratio, with Pareto-optimal candidates ranked by size, latency and validation accuracy.
  • [Budget-based model selection] Pick a model by deployment budget — a size cap or latency cap returns the best fitting candidate instead of a fixed architecture.
  • [Mixed-precision assignment] Per-layer INT8/INT4 policy with the accuracy cost of each assignment measured on the validation set.
  • [Calibration-size experiment] The accuracy drop is measured across calibration-set sizes from 128 to 4,096 images, plotted for the report.
  • [Interactive efficiency lab demo] A working single-file web app: adjust bit-width, depth, width, patch size and calibration size and watch model size, latency and accuracy estimates update live.
  • [Full evaluation notebook] Dataset loading, FP32 baseline training or fine-tuning, quantization, and evaluation with confusion matrix and per-class metrics in one reproducible notebook.
  • [Complete viva kit] Project report, review PPT and viva Q&A document covering transformers, quantization, NAS and the student's own results.

What is included

  • Complete source code: NAS search, quantization pipeline and evaluation notebook
  • Trained FP32 baseline and quantized INT8 / mixed INT4 model files
  • Interactive efficiency-lab web demo (single-file HTML/CSS/JS)
  • NAS candidate table with Pareto-optimal shortlist and trade-off plots
  • Calibration-size study results and plots
  • Project report PDF (background, base-paper summary, methodology, results)
  • PPT presentation for final review
  • Viva Q&A preparation document (transformers, quantization, NAS, own results)
  • Base-paper summary note with DOI link for guide approval

Limitations & prerequisites

  • INT4 quantization costs accuracy: the mixed INT8/INT4 variant is expected to drop more than pure INT8, and the report states the measured drop rather than hiding it.
  • Post-training quantization without retraining cannot recover accuracy lost to aggressive bit-widths; quantization-aware training would be needed for further recovery and is listed as future scope.
  • Results depend on the dataset subset, calibration-set composition and hardware used for latency measurement; figures from the build run are not transferable as general benchmarks.
  • The NAS search scores candidates on estimated size and latency, not on-device measurements, unless the buyer runs the on-device measurement procedure included in the notebook.
  • The demo lab's charts use a scaling model for teaching; they are labelled design-target estimates and are not benchmark measurements.
  • Vision transformers are sensitive to calibration outliers in attention and LayerNorm outputs; small or unrepresentative calibration sets widen the accuracy drop.
  • This is an academic implementation of a research method, not a production compression toolkit.

Frequently Asked Questions

Which base paper does this project implement?

Towards Accurate Post-Training Quantization of Vision Transformers via Error Reduction, IEEE Transactions on Pattern Analysis and Machine Intelligence, 2025 (DOI: https://doi.org/10.1109/TPAMI.2025.3528042). The build implements its post-training quantization procedure — calibration, scale assignment and sensitive-layer protection — and the report carries the full citation for guide approval.

What is the student's own contribution beyond the paper?

The NAS search over transformer shape, the budget-constrained model selection, the mixed-precision per-layer policy, the calibration-size study and the interactive efficiency-lab demo. The paper quantizes fixed architectures; the search and selection around it are the student's own work, which is exactly what guides look for in a major project.

Is any accuracy guaranteed?

No. The design targets are under 1 percentage point drop at INT8 and under 3 at mixed INT4, but the actual figures depend on the dataset subset, calibration set and model, and the report documents whatever the build run measures — including a worse result if that is what happens.

Which dataset and model are used?

A vision transformer (ViT-Tiny/Small scale) evaluated on an ImageNet-1K validation subset, with CIFAR-100 as the laptop-scale alternative. The report records the exact subset, split and model configuration used in the build.

Can this run on a normal laptop?

Yes — that is the point of the project. The FP32 baseline trains or fine-tunes at ViT-Tiny/Small scale, quantization needs no GPU retraining, and latency is measured on CPU. A GPU shortens the baseline training but is not required for the quantization and search stages.

Is this project suitable for a final-year project?

Yes — for Computer Science, IT and AI/ML programs. It demonstrates transformer architecture, neural architecture search, model compression, honest evaluation discipline and a working demo, anchored in a verifiable recent IEEE Transactions paper.

Is the base paper included?

Yes: the full citation with DOI link is on the page, and the implementation follows that paper.

What is the base paper vs the own features?

The base paper is the published method being implemented — here, the post-training quantization procedure — and the own features are the team's additional contribution, listed separately on the page: the NAS search over transformer shape, budget-constrained model selection, mixed-precision per-layer policy, calibration-size study, and interactive efficiency-lab demo.

Can my guide approve this paper?

The paper is a recent IEEE Transactions paper (TPAMI, 2025) with a verifiable DOI, which is what guides check; final approval always rests with the student's own guide and college. No approval is guaranteed.

Do you give Phase-1 and Phase-2 documents?

Yes: abstract, literature survey, and review decks in Phase-1; full build, report, and viva preparation in Phase-2.

Components & software requirements
  • Python 3, PyTorch
  • timm vision transformer models
  • NumPy, Matplotlib, scikit-learn (metrics)
  • Jupyter Notebook (training · search · evaluation)
  • ONNX Runtime (quantized inference measurement)
  • HTML5 · CSS · JavaScript (efficiency-lab demo)

Dataset & model details

  • Dataset: ImageNet-1K validation subset for the efficiency study, with CIFAR-100 as the lightweight alternative for laptop-scale runs — both are standard public benchmarks; the exact subset used is recorded in the report. A selected subset is used for this implementation so the build fits a student laptop.
  • Task: Image classification; input = RGB image (224 × 224), output = probability distribution over classes, plus the efficiency measures (model size in MB, latency in ms per image, accuracy drop in percentage points).
  • Model: Vision transformer (ViT-Tiny/Small scale) as the FP32 baseline; NAS-selected variants of the same family; post-training quantization to INT8 and mixed INT8/INT4 following the TPAMI 2025 base-paper procedure.
  • Metrics: Top-1 accuracy, accuracy drop vs FP32 baseline (percentage points), model size (MB), latency per image (ms), compression ratio (×). No accuracy is claimed as measured until the build run is executed for the order; the report documents the actual achieved figures.
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

ERQ, IEEE Transactions on Pattern Analysis and Machine Intelligence, 2025

Get a quotation