Related Experiment Videos
Analyzing the impact of KV representation compression on explainability in lightweight transformer-based sentiment
1Department of Computer Engineering, Graduate School of AI Convergence, Sejong University, Seoul, South Korea. llmss2000@hanmail.net.
Abstract:
This study analyzes the impact of key-value (KV) representation compression on explainability in lightweight Transformer-based sentiment analysis. DistilBERT and MiniLM are evaluated on IMDB, SST-2, and TweetEval using a two-stage compression framework. The proposed approach achieves compression ratios of 2.46-3.05 while maintaining high representational similarity (cosine similarity > 0.994). Predictive performance remains stable across all settings, with accuracy variations within 0.02. From an explainability perspective, compression effects vary depending on dataset characteristics. SST-2 demonstrates strong robustness, maintaining explanation preservation above 0.90 with high contrastive consistency (~ 0.89). In contrast, IMDB and TweetEval show moderate reductions in fidelity and stability, although meaningful explanation structures are still preserved (preservation ~ 0.53-0.74). In some cases, fidelity and matching reliability are slightly improved after compression. These results indicate that KV representation compression improves memory efficiency while largely preserving predictive performance and core explanation structures. However, its impact on explainability depends on dataset characteristics such as input length and structural complexity.
Related Concept Videos
Transformers
The iron core has a substantial relative permeability. Therefore, the magnetic field lines generated due to the current in one winding are almost entirely confined within the core, such that the same magnetic flux permeates each turn of both...
Energy Losses in Transformers
There are four main reasons for energy losses in transformers.
The first cause can be the high resistance of the copper windings...
Types Of Transformers
If the ratio of the number of turns in the secondary winding to that of the primary winding is greater than one, then the transformer is said to be a step-up transformer. In a step-up transformer, the voltage at the secondary winding is greater than the voltage applied at the primary winding.
However, if this ratio is less than one, the transformer is said to be a step-down...
Improving Translational Accuracy
Improving Translational Accuracy
The Ideal Transformer
Ampere's Law forms the basis of understanding the magnetic field within the transformer. It states that the integral of the magnetic field intensity's tangential component...