[KongchangAI]
· 2 min read· 1,384 words

How Do Deep Networks Encode and Selectively Use Information? Vision and Language Models Share Encoding and Conditional Sign Readout

How Do Deep Networks Encode and Selectively Use Information? Vision and Language Models Share Encoding and Conditional Sign Readout

Research reveals a unified mechanism of shared encoding structure plus conditional sign readout in vision and language models.

This study investigates how deep networks retain contextual information in internal representations and selectively use it during decision-making. Through background texture editing in vision classifiers and entity binding editing in frozen language models, the research finds that both modalities preserve identifiable structure across pre-segmented, non-overlapping hidden unit blocks (shared encoding) and achieve conditional selective readout through signed channel and path contributions. In convolutional classifiers, net channel strengthening coexists with cancellation between positive and negative weight groups; in Qwen2.5, merely switching prompt presentation can reverse the average finite selection effect. Held-out tests further validate: attenuating antagonistic units amplifies editing effects, and conditional channel variance combined with fixed readout weights can predict single-channel pruning recovery. This framework provides a cross-modal mechanistic perspective for model interpretability, editing, and pruning.

How do deep networks retain contextual information in their internal representations while selectively using it during decision-making? A research paper provides a mechanistic answer to this question through background texture editing in vision classifiers and entity binding editing in frozen language models. The study finds that in both vision and language modalities, factor perturbations preserve identifiable structure across pre-segmented, non-overlapping hidden unit blocks, and achieve selective use through conditional sign readout.

Research source screenshot

Background: The Tension Between Representation Retention and Selective Use

A core capability of deep networks is to retain rich contextual information in internal representations while invoking only a subset of it when making specific decisions. This "retain but selectively use" property is fundamental to model robustness and flexibility, but its underlying mechanisms have remained unclear.

The paper approaches this from two seemingly different tasks: background texture changes in vision classifiers, and entity binding relationship manipulation in frozen language models. The researchers aim to answer a unified question: how does the network encode and selectively read out specific factors without disrupting the overall representational structure?

Core Findings: Shared Encoding and Conditional Sign Readout

Shared Encoding Structure in Vision and Language

In vision classifiers, after applying background texture edits to images, hidden units are partitioned into pre-fixed, non-overlapping channel blocks. The study finds that the visual channel blocks under texture editing match their complement more closely than they match other images under the same texture edit. This indicates that factor perturbations preserve identifiable structure across blocks.

In frozen language models, researchers edit entity bindings. Language blocks can transfer relational directions fitted under one query role to another query role, used to rank relational states in held-out name pairs. Both modalities exhibit retention of shared encoding structure under factor perturbation.

Pre-segmented hidden unit blocks refer to partitioning hidden layer neurons (or channels) into non-overlapping groups according to fixed rules when analyzing internal representations, rather than dynamically clustering based on data. Common approaches include blocking by channel index order, partitioning by spatial position, or grouping based on pre-trained weight structure. This pre-segmentation ensures that comparisons under different editing conditions have a consistent baseline, avoiding spurious differences introduced by grouping changes. The emphasis on "pre-fixed" in the study is to show that the emergence of shared structure is not an artifact of clustering algorithms, but a stable organization maintained by the network itself under perturbation.

Conditional Sign Readout: The Cancellation Mechanism of Positive and Negative Contributions

Researchers further decompose local output changes into signed channel and path contributions. In convolutional classifiers, net channel-level strengthening (R^(512) > 1) and cancellation between positive and negative weight groups (R^(2) < 1) can be observed simultaneously on a single image. This means the network overall strengthens signals in certain channels, but at the finer weight grouping level, positive and negative contributions cancel each other out.

This cancellation is not noise but a manifestation of conditional selective readout: the network retains information during encoding, but during readout decides based on contextual conditions which channel contributions are amplified and which are suppressed.

Conditional sign readout refers to the network assigning positive or negative weights to different channels or paths based on contextual conditions when mapping hidden representations to outputs, thereby achieving selective amplification or suppression. Its "conditional" aspect is reflected in that readout weights are not fixed but vary with input or prompts; its "sign" aspect is reflected in that contributions can be positive or negative, and positive-negative cancellation can reduce net effects or even reverse them. This mechanism differs from simple feature selection: information is always retained in the representation, but the readout stage determines whether it affects decisions through sign flipping. The study directly observes this conditional sign assignment by decomposing local output changes into signed channel and path contributions.

Prompt Presentation Reverses Selection Effects

In the Qwen2.5 model, researchers fixed weights, paired relationship edits, and red/blue answer words, and only switched the prompt presentation method. The results showed that the average finite selection effect was reversed. This result directly demonstrates the existence of conditional sign readout: the same encoded content is assigned opposite readout signs under different prompt conditions.

Held-out Tests Validate the Mechanism

Attenuating Antagonistic Units Amplifies Editing Effects

The first validation experiment targets antagonistic units selected during development. After attenuating these units, the impact of editing effects on unseen inputs is amplified. This indicates that these antagonistic units normally serve to suppress excessive propagation of editing effects; attenuating them releases the editing effects.

In vision Transformers, after the same frozen units are attenuated in a single forward pass, the average magnitude of background editing effects on one class margin increases while decreasing for another class, with the second group of units showing the opposite pattern. The four-cell paired interaction reaches +78.30×10⁻⁵ logit, indicating that the impact of unit attenuation has class-dependent directionality.

Antagonistic units refer to hidden units identified during development (or training) that suppress specific editing effects. They do not directly encode target factors but limit excessive propagation of editing effects to unseen inputs through negative regulation, thereby maintaining representation stability. Attenuating these units (e.g., zeroing or reducing their activation values) removes suppression, amplifying editing effects on out-of-distribution inputs. This phenomenon exhibits class-dependent directionality in vision Transformers: attenuating the same group of frozen units enhances editing effects on one class margin while weakening them for another, indicating that the role of antagonistic units is conditionally selective rather than globally uniform.

Conditional Channel Variance Predicts Pruning Recovery

The final test combines conditional channel variance with fixed downstream readout weights to predict recovery after single-channel pruning under ten cutting conditions. This predictive capability further supports the explanatory power of the "shared encoding + conditional sign readout" framework: channel importance depends not only on its variance but also on how downstream readout weights conditionally use that channel.

Conditional channel variance refers to channel activation variance computed under specific input conditions or contexts, rather than global static variance. Combining it with fixed downstream readout weights allows estimation of the degree of network output recovery after single-channel pruning: channels with high variance and strong conditional readout weights recover poorly after pruning; channels with low variance or weak readout weights have minimal pruning impact. This metric goes beyond traditional pruning importance measures based on weight norms or average activations, emphasizing that channel importance is conditional—the same channel may have vastly different importance under different inputs or prompts, so pruning decisions must consider conditional distributions rather than static statistics.

Significance and Implications

The significance of this research lies in its unified framework explaining seemingly different phenomena in vision and language models. Shared encoding ensures information accessibility in internal representations, while conditional sign readout provides selectivity during decision-making. The coexistence of both allows the network to retain rich context while flexibly invoking it according to task demands.

For model interpretability research, this framework provides tools for decomposing output changes at the channel and path levels. For model editing and pruning practice, the findings on antagonistic units and conditional channel variance suggest that unit importance is conditional and cannot be judged solely by static statistics.

The core contribution of the paper can be summarized as: in both vision and language modalities, shared encoding structure under factor perturbation and conditional sign readout mechanisms coexist, and their causal roles are validated through held-out tests. This provides a cross-modal mechanistic perspective for understanding how deep networks process information.

One-line Summary

Research reveals a unified mechanism of shared encoding structure plus conditional sign readout in vision and language models.

Paragraph Summary

This study explores how deep networks retain contextual information in internal representations and selectively use it during decision-making. Through background texture editing in vision classifiers and entity binding editing in frozen language models, the research finds that both modalities preserve identifiable structure across pre-segmented, non-overlapping hidden unit blocks (shared encoding) and achieve conditional selective readout through signed channel and path contributions. In convolutional classifiers, net channel strengthening coexists with cancellation between positive and negative weight groups; in Qwen2.5, merely switching prompt presentation can reverse the average finite selection effect. Held-out tests further validate: attenuating antagonistic units amplifies editing effects, and conditional channel variance combined with fixed readout weights can predict single-channel pruning recovery. This framework provides a cross-modal mechanistic perspective for model interpretability, editing, and pruning.

#deep networks#conditional sign readout#shared encoding#vision language models#model interpretability#pruning#antagonistic units
Share:

Related articles