188 karma · joined May 27, 2022 (4y ago) · 104 submissions
comment 2y ago · link · parent
I'd argue the choice is still subjective, since you are still only testing over a limited (subjective) set of options. If you are doing this properly (i.e., using an independent validation set), then you can apply the same approach to a Bayesian method and obtain the same type of information ("when I use prior A vs. prior B, how does that change the generalization/out-of-bag error properties of my model?"), without violating any properties or theoretical guarantees of "Bayesianism".
> A Bayesian could try the same thing: try out several priors, and pick the one that performs best in validation. But if you pick your prior based on the data, then the classic theory about “principled quantification of uncertainty” doesn’t apply any more.
If you subjectively define a set of possible priors (i.e., distributions and parameters) to test in a validation setting, then you are not picking your prior based on the data (again, assuming that you have set up a leakage-free partition of your data in training and validation data), and you are not doing empirical Bayes, so you are not violating any supposed "principled quantification of uncertainty" (if you believe that applying a standard subjective Bayesian approach provides you with "principled quantification of uncertainty").
My point was that, in practice, there are ways of choosing (subjective) priors such that they provide sufficient regularization while ensuring that their impact on the results is minimized, particularly when you can assume certain things about the scale of data (and, in the context of neural networks, you often can, due to things like "normalization layers" and prior scaling of inputs and outputs): "subjective" doesn't have to mean "arbitrary".
> So you’re left using a computationally unwieldy procedure that doesn’t offer theoretical guarantees.
I won't argue about the fact that training NN using Bayesian approaches is computationally unwieldy. I just don't see how evaluating a modelling decision (be in Bayesian or non-Bayesian modelling), using a proper validation process, would violate any specific theoretical guarantees.
If you can explain to me how evaluating the generalization properties of a Bayesian training recipe on an independent dataset violates any specific theoretical guarantees, I would be thankful (note: as far as I am concerned, "principled quantification of uncertainty" is not a specific theoretical guarantee).
comment 2y ago · link · parent
I agree that, computationally, it is hard to justify the use of Bayesian methods on large-scale neural networks when stochastic gradient descent (and friends) is so damn efficient and effective.
On the other hand, the fact that there's a dependence on (subjective) priors is hardly a fair critique: non-Bayesian training of neural networks also depends on the use of (subjective) loss functions with (subjective) regularization terms (in fact, it can be shown that, mathematically, the use of priors is precisely equivalent to adding regularization to a loss function). Non-Bayesian training of neural networks is not "a failed approach" just because someone can arbitrarily choose L1 regularization (i.e., a Laplacian prior) over L2 regularization (i.e., a Gaussian prior).
Furthermore, we do have some intuition over NN parameters (particularly when inputs and outputs are properly scaled): a value of 10^15 should be less likely than a value of 0. Note that, in Bayesian practice, people often use weakly-informative priors (see, e.g., http://www.stat.columbia.edu/~gelman/presentations/weakprior...) to encode such intuitive statements while ensuring that (for all practical purposes) the data will effectively overwhelm the prior (again, this is equivalent to adding a minimal amount of regularization to a loss function, to make a problem well-posed when e.g. you have more parameters than data points).
comment 2y ago · link · parent
So... unless I'm understanding something incorrectly, something like "the three last moves plus 17 bits of state" (plus the current board state) should be enough to treat chess as a memoryless process. Doesn't seem like too much to track.
comment 2y ago · link · parent
Given that this issue applies to all proprietary/non-opensource software, which is the overwhelming majority of software out there, you can hardly blame GPL3 for this fact of life.
comment 2y ago · link · parent
More like "an effect this large, or larger, should happen by chance 1 time out of 20 in the hypothetical universe where we already know that the true size of the effect is zero".
Part of the problem of p-values is that most people can't even parse what it means (not saying it's your case). P-values are never a statement about probabilities in the real world, but always a statement about probabilities in a hypothetical world where we all effects are zero.
"Effect sizes", on the other hand, are more directly meaningful and more likely to be correctly interpreted by people on general, particularly if they have the relevant domain knowledge.
(Otherwise, I 100% agree with the rest of your comment.)
comment 2y ago · link · parent
A p-value does not measure "importance" (or relevance), and its meaning is not dependent on the research field or domain knowledge: it mostly just depends on effect size and number of replicates (and, in this case, due to the need to apply multiple comparison correction for effective FDR control, it depends on the number of things you are testing).
If you take any fixed effect size (no matter how small/non-important or large/important, as long as it is nonzero), you can make the p-value be arbitrarily small by just taking a sufficiently high number of samples (i.e., replicates). Thus, the p-value does not measure effect importance, it (roughly) measures whether you have enough information to be able to confidently claim that the effect is not exactly zero.
Example: you have a drug that reduces people's body weight by 0.00001% (clearly, an irrelevant/non-important effect, according to my domain knowledge of "people's expectations when they take a weight loss drug"); still, if you collect enough samples (i.e., take the weight of enough people who took the drug and of people who took a placebo, before and after), you can get a p-value as low as you want (0.05, 0.01, 0.001, etc.), mathematically speaking (i.e., as long as you can take an arbitrarily high number of samples). Thus, the p-value clearly can't be measuring the importance of the effect, if you can make it arbitrarily low by just having more measurements (assuming a fixed effect size/importance).
What is research field (or domain knowledge) dependent is the "relevance" of the effect (i.e., the effect size), which is what people should be focusing on anyway ("how big is the effect and how certain am I about its scale?"), rather than p-values (a statement about a hypothetical universe in which we assume the null to be true).
comment 2y ago · link · parent
Perhaps, but this is not something unique to KANs: any symbolic regression method can (at least in theory) find such simple expressions. Here is an example of such type of work (using non-KAN neural networks): https://www.science.org/doi/10.1126/sciadv.aay2631
Rephrasing: just because you can reach simple expressions with symbolic regression methods based on neural networks (or KANs) does not necessarily imply that neural networks (or KANs) are inherently interpretable (particularly once you start stacking multiple layers).
comment 2y ago · link · parent
I'm not sure this changes if you look at a cepstral representation (as suggested in the article). In this case, the DC component represents the (white) noise level in the raw audio space (i.e., the spectrum averaged over all frequencies), so it doesn't have strong semantics either (other than... "how noisy is the waveform?").
comment 2y ago · link · parent
I mean that "trying to argue based on (your perception of) the person you are talking to, rather than what is being discussed, is a bad argumentation strategy".
> How is this specific decision, or some of the other examples/laws you've mentioned not authoritarian at least to some extent?
Even if it is (which you surely haven't demonstrated), in what way does that imply that I (or anyone else) feel "appeal towards authoritarianism"? Stick to discussing the subject, instead of discussing the people you are talking to, if you want to be taken seriously.
> It doesn't mean that they are not necessarily or unjustifiable in every single case.
If they are legally, morally and ethically justifiable (at least sometimes), then it's not really "authoritarianism": it's just "rule-of-law".
> I kept repeating this point in every comment I made. Yet you ignored it from the very beginning.
No. The only time you mentioned it (in a response to me) was when I called you out. If you disagree, please post the supposed previous comment you made (in response to me) where you bring up the VPN ban issue.
> Also it's not a different subject, it's intrinsically related to the decision made to ban Twitter since that's how the judge decided to enforce it.
From what I understand, the only thing that was banned was the use of circumvention technologies for the purpose of accessing Twitter (which seems legitimate if his previous ruling is to be effectively enforced). From what I understand, the blanket ban of VPN technologies (which does not seem legitimate to me) has been reversed.
> The point that different countries have different laws? Well that's a fact, not sure how can I address it.
The way to address it is to accept that US laws (and US standards of free speech) do not apply to this case, since it is outside of US jurisdiction. Furthermore, to accept that, if a company wants to operate in a certain country, it kind of has to abide by its laws and regulations (regardless of whether they are legitimate or not).
> However I'm curious where do you draw the line? e.g. the USSR had laws, Russia has laws, Venezuela has laws so does China, Hungary and every other country. They all have vary different attitudes to freedom of speech and a bunch of other matters, do you believe that they are all equally valid, reasonable and legitimate?
Obviously not, but the fact remains: if you want to operate in USSR, Russia, Venezuela, China, Hungary, or wherever, you need to comply with local regulations and laws. Or, of course, you can choose not to, but then it is quite likely that local authorities will do whatever they can to prevent your company from operating in their country.
Musk/Twitter has no problem complying with Turkish and Indian court requests and laws, even when it involves censorship. Yet, it can't seem to do the same when it comes to Brazilian court requests and laws. Strange...
comment 2y ago · link · parent
In this particular case, I do not have enough information to state with certainty whether I think this particular case is legitimate or not, but it does seem to be lawful (which is the criterion that is seemingly important for Twitter/Musk).
I have no particular preference with regards to whether Musk chooses to be consistent or not: that's his decision and he/Twitter is the one that has to endure the consequences of his actions (not me). Since I am not a Twitter user, it does not affect me either way, and I don't see how it will significantly affect Brazilian's capacity to freely communicate (note: there are plenty of other private communication platforms that do comply with Brazilian law... Telegram, Whatsapp, Instagram, Facebook, etc.).
On the other hand, I do think it is hypocritical to claim to be a "defender of free speech", and then both engage in non-state-mandated censorship AND comply with state-mandated censorship (as long as it suits him or Twitter). It's a laughable claim. That was my only point.
comment 2y ago · link · parent
I don't know if, in this case, it is justified or not, but it seems to be lawful (the same way that the censorship requests in India and Turkey were), as far as I can tell (I assume a judge of the Supreme Court knows a bit more about Brazilian law than you and me).
Given that Musk/Twitter seemingly has no problem complying with lawful censorship demands (or engaging in arbitrary censorship even without lawful censorship demands), it seems clear to me that Musk has no problem with "more censorship in the world". That was my only point.
My personal opinion on whether there is higher or lower need for censorship in the world is rather irrelevant (since I have no power or platforms to censor), but I certainly see no problem in actively censoring terrorists, bots, spammers and scammers (for example).
comment 2y ago · link · parent
It's relevant, because it shows that Twitter/Musk has no problem engaging in state-mandated censorship, as long as it the mandate comes under the form of a judicial order.
The fact that Twitter/Musk also has no problem engaging in non-state-mandated censorship (e.g., banning of arbitrary words that displease Musk), further reinforces the notion that the refusal has nothing to do with "not wanting to cave to [censorship] demands".
> Also X did challenge censorship in India at least, in a lawsuit after Musk acquired Twitter. They lost the lawsuit in that case, but the main thing is that censorship was legal in other jurisdictions where X complied.
According to article 19 of the Constitution of India (https://indiankanoon.org/doc/1218090/), "all citizens shall have the right to freedom of speech and expression".
> It’s illegal in Brazilian law, which is why they aren’t caving to the demands of that one single rogue supreme court justice.
According to what? Constitutional law (the same way censorship is also illegal under Indian Constitutional law)?
If the supreme court justice is "rogue", there are specific mechanisms in the Brazilian political system to boot him out of the TSF.
> You don’t have to just blindly comply and accept dictatorships.
Unless the dictatorship changes the constitution (or some other laws) to make censorship legal, right? Otherwise, it's ok, according to your logic, since Musk/Twitter is ok with censorship, as long as (they consider) it is legal.
comment 2y ago · link · parent
No need for hypotheticals. He did do that (this is an easily-verifiable fact [1][2][3]).
> [...] the censorship they were claiming to oppose.
The thing is that this is clearly an empty claim, when Musk has no problems either complying with similar censoring orders from right-wing governments (Modi, Erdogan) or with arbitrarily censoring people for using medically-approved terms (like "cis" or "cisgender") that he simply does not like [4][5].
All of this censorship by Twitter is (legally) 100% within their right to do, as a private entity, but then whatever claims he (or Twitter) has of being a "defender of free speech" ring a bit hollow.
Given these things, the more plausible explanation for Musk's actions is not that he wants to defend free speech (or that he is fundamentally against censorship), but simply that the request comes from a (left-wing) government that is not ideologically aligned with his views.
It's a choice. But choices have consequences.
[1] https://slate.com/technology/2023/05/elon-musk-turkey-twitte...
[2] https://www1.folha.uol.com.br/internacional/en/world/2024/04...
[3] https://theintercept.com/2023/03/28/twitter-modi-india-punja...
[4] https://www.advocate.com/news/cisgender-restriction-x-twitte...
[5] https://nitter.poast.org/elonmusk/status/1719077000483066319...
comment 2y ago · link · parent
Sure, but we are not discussing the first amendment, or US law in general. As you must be aware, protection of freedom of expression rights are different in different jurisdictions.
> Obviously I'm not fully aware how exactly this works in Brazil but I doubt if it's fundamentally different.
I would not be so sure. For example, it is not legal to display a swastika in Germany (even though Germany is usually considered a democratic rule-of-law country), even though it might be legal to do so in the US.
> That's still unreasonable.
Just stating this (without any further argumentation) doesn't make it so. My only point is that, apparently, there is legal precedence for such kinds of things (i.e., banning a certain social network when it refuses to appoint a legal representative in Brazil).
> Also you're still dodging the VPN ban order...
I'm not dodging anything... that is a different issue, that we can further discuss, if you want to have a discussion in good faith. Trying to change subjects without addressing the point I made could be seen as moving goalposts, though.
> Anyway.. I understand that authoritarianism has a certain appeal to some people [...].
Ad hominem argumentation is not the best approach to argumentation, if you want to be taken seriously and have a discussion in good faith.
comment 2y ago · link · parent
Furthermore, there is already a precedent here: both Telegram and Meta have been previously (temporarily) banned from Brazil until they decided to comply with judicial orders (after which, they were unbanned again). Why does Twitter think they are special in this regard?
If the judicial order is (correctly) justified by an inconstitutional law, then it's that specific law that has to be challenged, not the judicial order.
comment 2y ago · link · parent
I assume that the judge in question used a specific criminal or civil law to justify his judicial order. If Twitter believes this law to be unconstitutional, the correct venue for their legal recourse is the Constitutional Court, not the Supreme Court.
In the meantime, until the Constitutional Court decides to hear their challenge and (possibly) revoke the law in question (possibly with retroactive effects), they still have to comply with judicial orders.
From what I understand, the Senate (if they believe the judge in question to be acting outside the law) has the necessary powers to boot the judge from the Supreme Court, if necessary. Twitter doesn't, sorry.
> Nobody is arguing about that, though.
People are arguing based on the supposed protection that the Brazilian constitution reserves for freedom of expression. This protection is not absolute, though (as pointed out by my example).
And constitutional law is not something that is directly applied: it mostly serves as guiding principles for the production of specific civil and criminal laws by the legislative power.
"This judicial order is inconstitutional" is simply a bad argument (from a legal point-of-view); a much more reasonable argument is "this judicial order is justified/based on an unconstitutional law" (but that is not the argument that is being made, as far as I can tell). If the judge is justifying his orders based on an inconstitutional law, then you should challenge the law itself, not the judicial order (if you can't really challenge the judicial order, which seems to be the case).
> Maybe appointing people who behave like schoolchildren to the supreme court is not the best idea then?
You do know that there is a law regulating so-called "deepfakes" in Brazil, right? (https://legis.senado.leg.br/sdleg-getter/documento?dm=929278...)
For someone who claims to be concerned about Brazilian law, Musk sure seems willing to ignore Brazilian laws, whenever it suits him.
Also, maybe it's not just the judge that is acting like a schoolchild, in this context. What do you think is going to happen if you talk back and threaten a judge with being arrested, even in a US court of law? Usually not fun things.
comment 2y ago · link · parent
If the argument is that it is illegal to "censor", due to the Brazilian constitution, then Twitter is already engaging in illegal behaviour whenever it bans accounts (or auto-removes tweets) for using terms Musk dislikes (like "cis" or "cisgender").
I really don't buy the "free speech" argument here, since Twitter has never been an "absolute free speech" space to begin with. Note that Musk had no problem censoring and banning accounts when asked by the Turkish or Indian governments.
comment 2y ago · link · parent
This is unconstitutional according to their interpretation of the (very extensive and vague) article 5 of the 1998 constitution, maybe. At the same time, if you disagree with a judicial order, you probably should appeal the order, rather than refuse/ignore it. Ignoring judicial orders has consequences.
> Note that the text of the Brazilian constitution explicitly says that the freedom of expression is guaranteed without censorship (it mentions “censorship”).
It says a lot of things (that can be interpreted in many ways). Note that it also says "é livre a manifestação do pensamento, *sendo vedado o anonimato*". Did Twitter/X refuse to give information about accounts, after having been asked by the Supreme Court? If yes, then it can also be said that they are breaking article 5 of the 1988 constitution.
In general, constitutional laws (in Brazil and elsewhere) tend to be rather vague. The devil is in the details. Just because it says somewhere that "é livre a expressão da atividade intelectual, artística, científica e de comunicação, independentemente de censura ou licença", doesn't mean that you are free to express your art of screaming "fire" in a crowded theater, for instance.
> If they were legal orders they would have complied, as they have in other countries.
In general, a person (or other legal entity) are not free to pick and choose what laws or judicial orders they want to follow, depending on their own interpretation of the law. Or, I mean... they can... but there are usually consequences to ignoring judicial orders.
Also, it probably is not a great idea to try to intimidate/aggravate/insult/threaten the judge (https://nitter.poast.org/elonmusk/status/1829005086606901481...) during those legal proceedings. Judges tend to not love that.
comment 2y ago · link · parent
Nice to play chords with a single (fat) finger, and you can go through the circle of fifths by moving vertically.
comment 2y ago · link · parent
It's not that there is "little variance left to explain", but actually that (no matter what) there will always be too much variance left to be explained, when the response is Bernoulli-distributed and the parameter is not too far from 0.5 (i.e., the data generating process is like flipping a slightly loaded coin).
If you use the expected value to predict the Bernoulli variable, you will always be somewhat wrong (0.45 and 0.55 are both far from 0 and from 1, which are the only possible responses).
If you use a binary response to predict, you will quite often be very wrong, even if you are right on average, and even if your prediction is to generate Bernoulli-distributed samples from the exact same distribution (i.e., you know exactly how the coin is loaded/biased and you can exactly replicate its data generation process).
So... yeah... no "paradox" ;)
comment 2y ago · link · parent
Either way, the point stands... the improvement in using a full linear model (that predicts 0.45 or 0.55, depending on state) is marginal compared to the baseline model that always predicts 0.50, as you demonstrate with your code.
To me, this doesn't seem paradoxical... the predictor is indeed providing little information over the "let's flip a coin to predict someone's voting preference" null/baseline predictor, since people's preferences (in aggregate) are almost equivalent to "flipping a coin".
note: I meant "sum", but it's the same, since the ratio between sums of squares is equivalent to the ratio between mean squares
comment 2y ago · link · parent
> data <- data.frame(state = c(0, 1), pref = c(0.45, 0.55))
> sum(residuals(lm(pref ~ 0, data = data))^2) # null model
[1] 0.505
> sum(residuals(lm(pref ~ 1, data = data))^2) # intercept-only model
[1] 0.005
> sum(residuals(lm(pref ~ state + 0, data = data))^2) # predictor-only model
[1] 0.2025
So, it seems clear that you only get a "perfect" prediction with the full (intercept + predictor) model mostly because of the intercept (which explains (0.505-0.005)/0.505 = 0.99 = 99% of the variance).
Thus, it makes sense that the predictor is only explaining the rest (i.e. 1%) of the variance... hence, the R^2 = 0.01
comment 2y ago · link · parent
The more accurate terms to describe this is whether an effect is significant (i.e., "do we have enough information to be able to claim it is different from zero?") vs. whether an effect is relevant (i.e., "is [our estimate of] the size of the effect meaningfully different from zero?").
Statistics can only address the first issue (effect significance); the second issue (effect relevance) requires domain knowledge beyond statistics (in some contexts, a difference of 0.01 units can be irrelevant, while it may be relevant in other contexts).
comment 2y ago · link · parent
This explains the paradox, basically. When you take the null model "preference = 50%" (i.e. intercept-only model), there simply isn't much residual variance left for the linear model to explain.
That's why you get an R^2 = 1 if you use the "R^2 = rho(state, preference)^2" formula (you are ignoring the role of the intercept in explaining most of the variance, and exploiting the translation-invariance of the Pearson correlation) vs. you getting an R^2 = 0.01 when you use the (more correct) "R^2 = explained variance / total variance" formula.
TL;DR: It makes sense to get a very low R^2 when it is the intercept and not the predictor that is explaining most of the variance.