## Diagram: Comparison of Deductive and Inductive Learning Architectures
### Overview
The image displays two schematic diagrams, labeled (A) and (B), illustrating two distinct machine learning paradigms: **Deductive** and **Inductive**. Both architectures utilize a shared core component, "Differentiable Modal Logic," and a "Loss" function, but they differ in their input sources, what is being learned, and the feedback pathways.
### Components/Axes
The diagrams use a consistent color-coding scheme to denote the function of each block:
* **Orange Boxes:** Learnable components (Proposer NN, Relation, Relation NN).
* **Blue Boxes:** Core processing unit (Differentiable Modal Logic).
* **Pink Boxes:** Optimization/Output component (Loss).
* **Grey Box:** Fixed/Static input (Context Enc.).
* **Arrows:** Indicate data flow (grey) and gradient feedback loops (orange).
### Detailed Analysis
#### (A) Deductive (Fixed Rules, Learn Content)
* **Flow:**
1. **Proposer NN** (labeled "Learns State") feeds into **Differentiable Modal Logic**.
2. **Relation** (labeled "Fixed R/Learned $A_\theta$") feeds into **Differentiable Modal Logic**.
3. **Differentiable Modal Logic** feeds into **Loss** (labeled "$L_{task} + L_{contra}$").
* **Feedback:** The **Loss** module propagates a "Gradient ($\nabla$)" back to both the **Relation** module and the **Proposer NN**.
* **Logic:** This architecture is designed to learn the *content* (state) while operating under fixed rules.
#### (B) Inductive (Fixed Input, Learn Structure)
* **Flow:**
1. **Context Enc.** (labeled "Fixed Input") feeds into **Differentiable Modal Logic**.
2. **Relation NN** (labeled "Learns $A_\theta$") feeds into **Differentiable Modal Logic**.
3. **Differentiable Modal Logic** feeds into **Loss** (labeled "$L_{task} + L_{contra}$").
* **Feedback:** The **Loss** module propagates a "Gradient ($\nabla$)" back to the **Relation NN**.
* **Logic:** This architecture is designed to learn the *structure* (the relations) while operating on a fixed input.
### Key Observations
* **Shared Core:** Both diagrams utilize the exact same "Differentiable Modal Logic" and "Loss" modules, suggesting these are the invariant components of the system.
* **Feedback Asymmetry:** Diagram (A) features a dual-feedback loop (updating both the Proposer and the Relation), whereas Diagram (B) features a single-feedback loop (updating only the Relation NN).
* **Input/State Distinction:** In (A), the system learns the "State" (Proposer NN). In (B), the system receives a "Fixed Input" (Context Enc.), shifting the learning burden entirely to the "Relation NN."
* **Notation:** Both diagrams use the notation $A_\theta$ to represent the learned parameters of the relation, and $L_{task} + L_{contra}$ to represent the combined loss function (likely a combination of task-specific loss and contrastive loss).
### Interpretation
This diagram illustrates the fundamental tension between deductive and inductive reasoning within the context of differentiable logic systems.
* **Deductive (Top-Down):** The system starts with a set of "Fixed Rules" (the logic framework) and attempts to learn the "Content" (the state of the world). It is essentially trying to map observed states into a pre-defined logical structure. The feedback loop to the "Proposer NN" indicates that the system is actively refining its understanding of the state to better fit the fixed rules.
* **Inductive (Bottom-Up):** The system starts with a "Fixed Input" (the raw data or context) and attempts to "Learn Structure." It is trying to infer the logical rules (the relations) that govern the data. The feedback loop only updates the "Relation NN," suggesting the system is refining its internal model of the logic itself to better explain the fixed input.
In essence, these diagrams demonstrate how the same "Differentiable Modal Logic" engine can be repurposed: either to find the best state for a given rule (Deductive) or to find the best rule for a given state (Inductive).