Abstract
Many transfer problems require re-using previously optimal decisions for solving new tasks, which suggests the need for learning algorithms that can modify the mechanisms for choosing certain actions independently of those for choosing others. However, there is currently no formalism nor theory for how to achieve this kind of modular credit assignment. To answer this question, we define modular credit assignment as a constraint on minimizing the algorithmic mutual information among feedback signals for different decisions. We introduce what we call the modularity criterion for testing whether a learning algorithm satisfies this constraint by performing causal analysis on the algorithm itself. We generalize the recently proposed societal decision-making framework as a more granular formalism than the Markov decision process to prove that for decision sequences that do not contain cycles, certain single-step temporal difference action-value methods meet this criterion while all policy-gradient methods do not. Empirical evidence suggests that such action-value methods are more sample efficient than policy-gradient methods on transfer problems that require only sparse changes to a sequence of previously optimal decisions.
Introduction
In real-world scenarios, learning is often incremental and localized. A chef who discovers an ingredient is spoiled replaces only that ingredient without forgetting the entire recipe. However, standard reinforcement learning (RL) agents are typically monolithic. When a small component of a task changes—such as a robot needing to navigate to a new room while the hallway remains identical—the agent often undergoes global updates that disrupt previously learned optimal behaviors. This lack of "modularity" forces agents to "unlearn" and re-acquire knowledge, leading to significant sample inefficiency.
The fundamental challenge lies in defining modularity for dynamic learning systems. While modularity in static architectures is well-understood, learning agents are modified by feedback signals (gradients) over time. This paper proposes a formal framework to design and verify learning algorithms where modifying one decision mechanism does not interfere with others.
Theoretical Framework: Algorithmic Causal Models
The authors bridge Algorithmic Information Theory and Causal Analysis to define Dynamic Modularity. Modularity is formalized as the condition where decision mechanisms and their corresponding feedback signals are algorithmically independent. In this view, knowing the update for one action should not provide information that helps compress or predict the update for another.
To operationalize this, the authors introduce the Algorithmic Causal Model of Learning (ACML). This framework represents the entire learning process as a causal graph where learnable functions are treated as data nodes. By applying d-separation to this graph, one can determine if an algorithm is modular based solely on its computational structure, independent of specific training data.
The Modularity Criterion
The research identifies several "modularity killers" in common RL algorithms:
- Global Normalization (Softmax): Policy gradient methods like PPO are inherently non-modular. The softmax function couples all action probabilities; an update to one action mathematically necessitates changes in others.
- Temporal Coupling ($n$-step Returns): Algorithms using Monte Carlo estimates or $n$-step returns (e.g., TD($\lambda$)) couple decisions across time. The feedback for a decision at time $t$ becomes a sum of rewards from future decisions.
- Weight Sharing: Modularity requires that action-specific networks do not share parameters, as shared weights create immediate algorithmic dependence.
The authors prove that single-step temporal difference methods (TD(0)) are uniquely positioned to satisfy the modularity criterion, provided they utilize a "society" of independent agents (Societal Decision-Making) rather than a single monolithic policy.
Experimental Evaluation
The theory was tested on controlled synthetic tasks designed to isolate modularity effects, including linear chains (A → B → C) and transfer tasks where the optimal sequence changes by a single step (e.g., A → B → D).
Key Results
The empirical results strongly support the theoretical predictions:
- Transfer Efficiency: In a linear chain task where only the final decision was altered, the modular Cloned Vickrey Society (CVS) algorithm achieved a 13.9x speedup in transfer compared to PPO.
- Preservation of Knowledge: In "forgetting" experiments, non-modular agents (PPO) significantly degraded their performance on an initial Task A while learning a disjoint Task B. In contrast, modular agents (CVS) preserved Task A performance perfectly.
- Gradient Coupling: A version of PPO with separate networks (PPOF) still underperformed compared to CVS, demonstrating that weight factorization alone is insufficient if the objective function (gradients) remains coupled.
Discussion and Future Work
While this work provides a rigorous binary criterion for modularity, several avenues for future research remain. The current proofs assume acyclic decision sequences; extending this to cyclic environments is a critical next step. Additionally, while the theory is robust, scaling these principles to high-dimensional continuous control or large-scale language models presents an open challenge. The authors suggest that moving toward a "soft" modularity metric—quantifying the degree of algorithmic mutual information—will be essential for complex deep learning systems. Ultimately, this work highlights that the causal structure of the learning algorithm itself serves as a powerful, yet underutilized, inductive bias.
Summary updated