Can we think of neurons as maps between matrices?
$begingroup$
Usually when we think about neurons, we imagine that they enact some kind of map between real numbers. For example, a neuron might take in real numbers $x_{i}$ and weight them with parameters $W_{ij}$, so that the neuron $j$ in a subsequent layer receives an input $sum_{i}W_{ij}x_{i}$ and outputs $f(sum_{i}W_{ij}x_{i}+b_{j})$, where $b_{j}$ is a bias and $f$ is the activation function. However, one can instead imagine a neuron that maps matrices to matrices by simply promoting the outputs $x_{i}$ and biases $b_{j}$ to matrices, so that they carry an additional index structure, e.g., $x_{i}rightarrow x_{i}^{alphabeta}$. In this convention, lower indices would then indicate the locations of objects in the network and upper indices would indicate matrix elements, so that $x_{i}^{alphabeta}$ denotes a matrix input from neuron $i$ with matrix elements indexed by $alpha$ and $beta$.
This kind of structure then tells us that an input to an arbitrary neuron, i.e. $sum_{i}W_{ij}x_{i}^{alphabeta}$, is just a linear combination of the matrices output by the previous layer of the network (note that the weights are still real numbers). Further, the activation function $f$ would now be a matrix function, by which I mean the output of a neuron would be defined by the Taylor series of that function evaluated on the input matrix.
Could such a scheme work, by which I mean could such a network be practically trainable? It seems to me that the answer should be yes if the activation functions in the network are well behaved. A simple example would be something like the matrix exponential function: suppose I want to compute, for a matrix $A$,
$$e^{A} = sum_{n=0}^{infty}frac{1}{n!}A^{n}$$
Further, $A$ can be written as some linear combination of other matrices $A_{i}$: $A = sum_{i}a_{i}A_{i}$, with the $a_{i}$ real numbers. If I fix $e^{A}$, shouldn't it be possible to train a network by adjusting the $a_{i}$ until a best fit is found?
This seems like a plausible idea but I'm not aware of neurons being used in this way. Has this been discussed before in the literature?
machine-learning linear-algebra
New contributor
$endgroup$
add a comment |
$begingroup$
Usually when we think about neurons, we imagine that they enact some kind of map between real numbers. For example, a neuron might take in real numbers $x_{i}$ and weight them with parameters $W_{ij}$, so that the neuron $j$ in a subsequent layer receives an input $sum_{i}W_{ij}x_{i}$ and outputs $f(sum_{i}W_{ij}x_{i}+b_{j})$, where $b_{j}$ is a bias and $f$ is the activation function. However, one can instead imagine a neuron that maps matrices to matrices by simply promoting the outputs $x_{i}$ and biases $b_{j}$ to matrices, so that they carry an additional index structure, e.g., $x_{i}rightarrow x_{i}^{alphabeta}$. In this convention, lower indices would then indicate the locations of objects in the network and upper indices would indicate matrix elements, so that $x_{i}^{alphabeta}$ denotes a matrix input from neuron $i$ with matrix elements indexed by $alpha$ and $beta$.
This kind of structure then tells us that an input to an arbitrary neuron, i.e. $sum_{i}W_{ij}x_{i}^{alphabeta}$, is just a linear combination of the matrices output by the previous layer of the network (note that the weights are still real numbers). Further, the activation function $f$ would now be a matrix function, by which I mean the output of a neuron would be defined by the Taylor series of that function evaluated on the input matrix.
Could such a scheme work, by which I mean could such a network be practically trainable? It seems to me that the answer should be yes if the activation functions in the network are well behaved. A simple example would be something like the matrix exponential function: suppose I want to compute, for a matrix $A$,
$$e^{A} = sum_{n=0}^{infty}frac{1}{n!}A^{n}$$
Further, $A$ can be written as some linear combination of other matrices $A_{i}$: $A = sum_{i}a_{i}A_{i}$, with the $a_{i}$ real numbers. If I fix $e^{A}$, shouldn't it be possible to train a network by adjusting the $a_{i}$ until a best fit is found?
This seems like a plausible idea but I'm not aware of neurons being used in this way. Has this been discussed before in the literature?
machine-learning linear-algebra
New contributor
$endgroup$
add a comment |
$begingroup$
Usually when we think about neurons, we imagine that they enact some kind of map between real numbers. For example, a neuron might take in real numbers $x_{i}$ and weight them with parameters $W_{ij}$, so that the neuron $j$ in a subsequent layer receives an input $sum_{i}W_{ij}x_{i}$ and outputs $f(sum_{i}W_{ij}x_{i}+b_{j})$, where $b_{j}$ is a bias and $f$ is the activation function. However, one can instead imagine a neuron that maps matrices to matrices by simply promoting the outputs $x_{i}$ and biases $b_{j}$ to matrices, so that they carry an additional index structure, e.g., $x_{i}rightarrow x_{i}^{alphabeta}$. In this convention, lower indices would then indicate the locations of objects in the network and upper indices would indicate matrix elements, so that $x_{i}^{alphabeta}$ denotes a matrix input from neuron $i$ with matrix elements indexed by $alpha$ and $beta$.
This kind of structure then tells us that an input to an arbitrary neuron, i.e. $sum_{i}W_{ij}x_{i}^{alphabeta}$, is just a linear combination of the matrices output by the previous layer of the network (note that the weights are still real numbers). Further, the activation function $f$ would now be a matrix function, by which I mean the output of a neuron would be defined by the Taylor series of that function evaluated on the input matrix.
Could such a scheme work, by which I mean could such a network be practically trainable? It seems to me that the answer should be yes if the activation functions in the network are well behaved. A simple example would be something like the matrix exponential function: suppose I want to compute, for a matrix $A$,
$$e^{A} = sum_{n=0}^{infty}frac{1}{n!}A^{n}$$
Further, $A$ can be written as some linear combination of other matrices $A_{i}$: $A = sum_{i}a_{i}A_{i}$, with the $a_{i}$ real numbers. If I fix $e^{A}$, shouldn't it be possible to train a network by adjusting the $a_{i}$ until a best fit is found?
This seems like a plausible idea but I'm not aware of neurons being used in this way. Has this been discussed before in the literature?
machine-learning linear-algebra
New contributor
$endgroup$
Usually when we think about neurons, we imagine that they enact some kind of map between real numbers. For example, a neuron might take in real numbers $x_{i}$ and weight them with parameters $W_{ij}$, so that the neuron $j$ in a subsequent layer receives an input $sum_{i}W_{ij}x_{i}$ and outputs $f(sum_{i}W_{ij}x_{i}+b_{j})$, where $b_{j}$ is a bias and $f$ is the activation function. However, one can instead imagine a neuron that maps matrices to matrices by simply promoting the outputs $x_{i}$ and biases $b_{j}$ to matrices, so that they carry an additional index structure, e.g., $x_{i}rightarrow x_{i}^{alphabeta}$. In this convention, lower indices would then indicate the locations of objects in the network and upper indices would indicate matrix elements, so that $x_{i}^{alphabeta}$ denotes a matrix input from neuron $i$ with matrix elements indexed by $alpha$ and $beta$.
This kind of structure then tells us that an input to an arbitrary neuron, i.e. $sum_{i}W_{ij}x_{i}^{alphabeta}$, is just a linear combination of the matrices output by the previous layer of the network (note that the weights are still real numbers). Further, the activation function $f$ would now be a matrix function, by which I mean the output of a neuron would be defined by the Taylor series of that function evaluated on the input matrix.
Could such a scheme work, by which I mean could such a network be practically trainable? It seems to me that the answer should be yes if the activation functions in the network are well behaved. A simple example would be something like the matrix exponential function: suppose I want to compute, for a matrix $A$,
$$e^{A} = sum_{n=0}^{infty}frac{1}{n!}A^{n}$$
Further, $A$ can be written as some linear combination of other matrices $A_{i}$: $A = sum_{i}a_{i}A_{i}$, with the $a_{i}$ real numbers. If I fix $e^{A}$, shouldn't it be possible to train a network by adjusting the $a_{i}$ until a best fit is found?
This seems like a plausible idea but I'm not aware of neurons being used in this way. Has this been discussed before in the literature?
machine-learning linear-algebra
machine-learning linear-algebra
New contributor
New contributor
New contributor
asked 5 mins ago
mflynnmflynn
61
61
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "557"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
mflynn is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f44953%2fcan-we-think-of-neurons-as-maps-between-matrices%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
mflynn is a new contributor. Be nice, and check out our Code of Conduct.
mflynn is a new contributor. Be nice, and check out our Code of Conduct.
mflynn is a new contributor. Be nice, and check out our Code of Conduct.
mflynn is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Data Science Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f44953%2fcan-we-think-of-neurons-as-maps-between-matrices%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown