AI Model Modulation with Logits Redistribution

Zihan Wang, Zhongkui Ma, Xinguo Feng, Zhiyang Mei, Ethan Ma, Derui Wang, Minhui Xue, Guangdong Bai

TL;DR

This paper introduces AIM, a novel method for "AI model modulation" that allows a single pre-trained model to exhibit diverse behaviors without retraining. AIM achieves this by strategically adjusting the model's "logits" (the raw scores before final predictions), enabling fine-grained control over output quality (utility) and feature focus, making AI models more adaptable for both owners and users.

What Problem Does This Paper Address?

The rapid advancement of large-scale AI models has created a challenge: how to adapt these powerful, but computationally expensive, models to meet diverse needs without the prohibitive costs of retraining or maintaining multiple specialized versions. Model owners want control over how their models are used (e.g., offering different service tiers with varying quality), while users desire models that can adapt to their specific preferences or tasks (e.g., focusing on pedestrian detection in autonomous driving). Traditional methods like fine-tuning or early exiting are often complex, require access to training data, or necessitate architectural changes, making them impractical for many real-world deployment scenarios.

Methods

AIM (AI Modulator) tackles this by introducing a "logits redistribution" strategy. Instead of altering the model's core architecture or retraining it, AIM directly manipulates the logits – the scores produced by the model just before the final probability calculation. This is achieved through a control function that adds carefully calibrated "noise" to these logits.

AIM offers two primary modulation modes:

  • Utility Modulation: This mode allows model owners to control the output quality. By adding noise with a controlled variance (σ), the model's performance can be predictably degraded, offering different utility levels. The key is that even with reduced quality, the outputs remain meaningful, preserving the model's core knowledge.
  • Focus Modulation: This mode empowers users to shift the model's attention to specific features or classes. By adding non-negative or non-positive noise to targeted logits, the model becomes more or less responsive to certain inputs, enhancing its focus on areas of interest without significantly compromising overall performance.

The theoretical foundation of AIM is built on analyzing the statistical properties of logits and their ordering, providing a formal guarantee for its regulation capabilities.

Datasets

The paper evaluates AIM on a variety of established benchmarks across different domains:

  • Image Classification: CIFAR-10 and CIFAR-100.
  • Semantic Segmentation: ADE20K and KITTI.
  • Text Generation/Reasoning: GSM8K and MMLU.

The models used for evaluation include ResNet-56, SegFormer-B2, and Llama-3.1-8B, demonstrating AIM's versatility across different architectures.

Key Insights and Ideas

  • Logits as the Control Knob: The paper convincingly argues that the model's logits are the ideal point for modulation. They represent the final decision-making stage and offer a direct pathway to influence output behavior without touching the complex feature extraction layers.
  • Retraining-Free Adaptation: The most significant insight is that AIM achieves sophisticated model adaptation without any retraining. This dramatically reduces computational costs and simplifies deployment, making advanced AI models more accessible and manageable.
  • Formal Guarantees for Control: By grounding AIM in the statistical properties of logits, the authors provide a theoretical framework that ensures predictable and controllable modulation, addressing concerns about maintaining model integrity.
  • Balancing Utility and Focus: AIM successfully demonstrates a dual capability: offering controlled performance degradation for utility tiers and targeted feature enhancement for user-specific needs, bridging the gap between model owner control and user adaptability.

Key Results

  • Utility Modulation: AIM successfully degraded performance on image classification (e.g., CIFAR-10 accuracy dropped from 94.37% to 72.08% with moderate noise), semantic segmentation (mIoU decreased from 46.20% to 31.42%), and text generation (GSM8K accuracy from 80.74% to 59.36%) in a controlled manner. This allows for tiered service offerings.
  • Focus Modulation: For semantic segmentation, AIM significantly improved the accuracy of targeted classes like "Person" (from 91.24% to 96.20%) with only a negligible decrease in overall mIoU, showcasing its ability to enhance specific detections without degrading general performance.
  • Knowledge Preservation: Even with utility modulation, the generated text from LLMs remained grammatically correct and coherent, though sometimes excessively verbose, highlighting that core language capabilities are preserved.

Limitations and Future Work

  • Excessive Noise in Focus Modulation: The paper notes that while focus modulation can enhance targeted class accuracy, applying excessive noise risks degrading overall performance (mIoU). Striking a balance is crucial.
  • Verbosity in LLM Utility Modulation: For LLMs, utility modulation can lead to overly verbose or redundant text, which, while grammatically correct, might introduce confusion or logical errors.
  • Future Work: The authors suggest that their theoretical framework can be extended for more complex probabilistic analyses of model behavior. The practical implications of AIM for various AI applications, especially in scenarios requiring fine-grained control and adaptability, are vast and warrant further exploration.

Summary updated

BibTeX
@inproceedings{wang2025ai,
  author = {Zihan Wang and Zhongkui Ma and Xinguo Feng and Zhiyang Mei and Ethan Ma and Derui Wang and Minhui Xue and Guangdong Bai},
  title = {{AI Model Modulation with Logits Redistribution}},
  booktitle = {The Web Conference},
  year = {2025},
  doi = {10.1145/3696410.3714737},
}
Figure