@@ -19,6 +19,17 @@ layers are naturally suited for:
1919- offering relatively stable optimization and efficient training;
2020- providing strong baseline performance without requiring external pretraining.
2121
22+ At the operator level, a 1D convolution behaves like a trainable motif scanner:
23+
24+ .. math ::
25+
26+ h_t = \sigma \!\left (\sum _{c=1 }^{C}\sum _{i=0 }^{k-1 } w_{c,i}\, x_{c,t+i} + b\right )
27+
28+ where :math: `x` is the multi-channel sequence input, :math: `k` is the kernel
29+ width, and :math: `h_t` is the activation at position :math: `t`. Each filter can
30+ be interpreted as a learned detector for short sequence patterns and their
31+ local variants.
32+
2233M1: CNN single-branch baseline
2334++++++++++++++++++++++++++++++
2435
@@ -36,6 +47,10 @@ Interpretation:
3647 already produce non-trivial predictive signal.
3748- It is intentionally simple and easy to compare against more expressive models.
3849
50+ Because it avoids pair fusion and avoids recurrent or attention mechanisms, M1
51+ is the cleanest answer to a foundational question: how far can local feature
52+ detectors and hierarchical pooling go on their own?
53+
3954M2: CNN dual-branch baseline
4055++++++++++++++++++++++++++++
4156
@@ -52,6 +67,15 @@ Why it matters:
5267- Separate branches let the model preserve region-specific representations
5368 before interaction modeling.
5469
70+ Its computation can be summarized as:
71+
72+ .. math ::
73+
74+ h_e = f_e(x_e), \qquad h_p = f_p(x_p), \qquad z = \mathrm {Fuse}(h_e, h_p)
75+
76+ This makes the architecture explicitly separate the two encoding problems
77+ before asking a fusion layer to model compatibility, asymmetry, or synergy.
78+
5579M3: k-mer embedding plus CNN
5680++++++++++++++++++++++++++++
5781
@@ -69,6 +93,16 @@ Why use k-mers:
6993- They can sometimes make biologically meaningful subsequence patterns easier to
7094 capture than raw one-hot channels alone.
7195
96+ Formally, the input representation becomes:
97+
98+ .. math ::
99+
100+ s = (t_1 , \dots , t_n), \qquad e_i = E[t_i]
101+
102+ where :math: `t_i` is a k-mer token and :math: `E` is the embedding table. The
103+ CNN then operates over token vectors rather than raw nucleotide channels, which
104+ places M3 between classical motif CNNs and language-model style representations.
105+
72106Shared strengths
73107++++++++++++++++
74108
@@ -95,4 +129,3 @@ work. For that reason, it plays two roles at once:
95129- practical baseline against which all later architectures are evaluated.
96130
97131.. image :: ../img/div.png
98-
0 commit comments