HNHacker News
TopNewBestAskShowJobs

ericjang

2,242 karma · joined February 8, 2015

evjang.com https://twitter.com/ericjang11
submissionscomments
ericjang··on Coin Carbon Cap – PoW cryptocurrencies ranked by energy efficiency
Do you have an estimate of energy used / total value secured ? If I am understanding correctly, an upper bound on "total value secured" would just be the total transaction volume moved in a block?
ericjang··on Golden Handcuffs
My general rule of thumb is that if the new comp arrangement isn't better in an obvious, predictable way, then it probably isn't better for the employee.

I think it would be good for Fred or Coinbase comp team to provide the expected payoff calculations for various kinds of employees under this new scheme - the hard numbers and probabilities (even optimistic ones) would be what convince me.

ericjang··on Diffusion Models Beat GANs on Image Synthesis
Ah, thanks. I had mistakenly assumed the diffusion process here was comparable / drop-in replacement to Langevin dynamics used with energy models.
ericjang··on Diffusion Models Beat GANs on Image Synthesis
I can try to provide a high level intuition. For actual experts, please forgive my errors of simplification.

Drawing samples from "simple" distributions like normal distributions is computationally easy. You can do it in microseconds. Sampling an arbitrary 1-D distribution is a bit harder - you have to invert its cumulative density function to recover probability under an "equivalent" uniform random variable, and potentially use a rejection sampling approach to sample 1-D values under this distribution.

Sampling a high-D distribution (such as an image) is even harder - you need to learn a mapping from this high-D image back to "tractable" densities. This imposes some pretty harsh "optimization bottlenecks" when trying to contort the manifold of images to normal distributions. The whole point of this exercise is that the transformation respects a valid probability distribution, so you can start from the normal distribution and apply this mapping to get a valid sample from the image distribution. This in practice is pretty hard, and the quality of samples seems to be lower than other forms of deep generative models which use less parameters.

Now instead of learning such a complex, hard-to-optimize transformation to valid densities, what if we instead learn a function E(x) that outputs a scalar "energy". The energy is low for "realistic" images, and high for unrealistic images. Kind of like inverse probability, except its not normalized - the energy value tells you nothing about likelihood unless you know the energy for all other images possible. This tends to actually be easier than learning densities, because the functional form of this energy function is unconstrained.

Furthermore, not knowing likelihoods doesn't stop you from getting "realistic" image, as all you need to do is descend the gradient x -= d/dx E(x), which takes you to an image with "lower" energy (i.e. more realistic). Under certain procedures (e.g. adding some noise to the gradient), this can be thought of as actually equivalent to sampling from a valid probability distribution, even though you can't compute its likelihood analytically.

The diffusion probabilistic model you refer to can be thought of as such a model - the more steps you take (i.e. the more compute you spend), the better the quality of the model.

GANs can be thought of as a one-pass neural network amortization of the end result of the diffusion process, but unlike MCMC methods, they cannot be "iteratively refined" with additional compute. Their sample quality is limited to whatever the generator spits out, even if you had additional compute.

ericjang··on X-Transformers: A fully-featured transformer with experimental features
vanilla neural networks from the 1950's look like

  def f(x):
    for _ in range(3):
      x = g(Wx + b)
    return x
Essentially it is a matrix multiplication, a vector addition, a non-linearity.

Transformers are a modification to that architecture - using different multiplications, additions, and non-linearities. both of these are general in the sense that if you have enough of them, they can approximate any function. The ones used for transformers empirically do well on a lot of machine learning problems, particularly where data has a sequential nature.

ericjang··on I’ve had the same supper for 10 years
Contrary to popular belief, cows have been known to eat small animals / meat for extra calcium or protein supplements https://farmhouseguide.com/do-cows-eat-meat

And vice versa, wolves also eat plants sometimes https://www.dogsnaturallymagazine.com/feed-your-dog-like-a-w....

ericjang··on Facebook Reports First Quarter 2021 Results [pdf]
I don't know of role-model investors / traders who amassed a fortune in a short amount of time, starting from a small amount of capital, without borrowing money. There are of course cases like /u/DeepFuckingValue turning a few hundred grand into tens of millions with his massively bullish GME position, but in general, taking this much risk on almost guarantees that you are blow up in a few years.

I agree with Shkreli: if you want to "amass a fortune in a short amount of time" AND do so without taking on an unreasonable level of risk, then doing so with cheap cost-of-capital (e.g. investing friends&family wealth, using insurance float, gift cards) is the way to go.

But "making 10s of millions quickly" is a different statement than "active trading is not worth the effort".

ericjang··on Why I Work on Ads
Disclaimer: I work at Google too (not ads), all opinions my own.

I'm surprised the author focused singularly on the "funding the open web" stance, and did not discuss the alleged negative externalities created by advertising-driven business incentives. The top comments of the blog comments (e.g. https://www.jefftk.com/p/why-i-work-on-ads#lw-Nvd9ZHJLxZpNZD...) also point this out.

For instance, The Netflix documentary "The Social Dilemma" discusses these at length, and it forms a lot of the political zeitgeist around regulation of adtech companies (e.g. driving polarization, radicalization, depression and such).

> The question is, what is the alternative? I see two main funding models:

It's possible to simultaneously believe that ads are currently the effective way to lower barrier of entry to accessing content, and also believe that ads are a detriment to people's mental health.

One alternative would be an ad-supported system that performs less-personalized ad-targeting, and in doing so influences people's behavior less but generates enough revenue to keep the lights on with a reasonable profit margin. The government has laws for regulating natural monopolies like this, where they prevent utility companies from price gouging but grant them a certain amount of margin.

ericjang··on Facebook Reports First Quarter 2021 Results [pdf]
> if you are not working at a hedge fund using large sums of other people's money, then the amount of profit one would make actively investing their own money is not worth the amount of research it takes to make informative investments

I think it's worth working out the math for yourself, rather than taking anyone's words for granted. Let's say the average annualized return of S&P500 is 10% (obviously, past returns are no guarantees of future returns). If you buy and hold, then you essentially pay no taxes on your capital gains.

Let's suppose the alternative is to actively trade, and your strategy involves holding securities < 1 year, incurring the maximum short term capital gains of 37%. Let's say your strategy generates an annualized average return of 20%, pre-tax.

So the annualized net worth (after capital gains taxes) starting from $100 would be:

passive: 100, 110, 121, 133

active: 100, 112, 126, 141

So you can generate 10% excess returns, after taxes you compound approximately 2% additional take-home money each year. Then you should ask yourself, is it worth the hassle? Maybe it is. Maybe it isn't. Some people enjoy researching companies, making predictions, and allocating capital to their beliefs.

obviously, there are ways to try and mitigate capital gains taxes - incorporating offshore LLCs, tax loss harvesting, etc. those are important considerations when designing an active trading strategy.

Separately from whether active investing is worth it or not, I think it's valuable to learn how to read financial reports and understand businesses as a projected set of cash flows, along with understanding things like balance sheets and incomes. Learning to read 10-Qs has helped me think of my own budget / personal finance planning much like a business. Financial literacy is super important, even if you are a passive investor.

ericjang··on Facebook Reports First Quarter 2021 Results [pdf]
Martin Shkreli (yes, The pharma bro) has an excellent set of youtube tutorials on reading 10-k and 10-q forms to compile DCF valuation models. His video series focuses on household tech names

here's the first one in the series: https://www.youtube.com/watch?v=VI_riscmviI

ericjang··on The Economics of 24/7 Lo-Fi Hip-Hop YouTube Livestreams
I think in the last decade, cultural norms in progressive circles have conditioned people to notice and point out when a community lacks racial / gender diversity. For instance, people will pay lip service to the cryptocurrency, AI, cybersecurity, FOSS communities (just to name a few) as being very "white and male" .

Just explaining why, I'm not making a normative claim here.

ericjang··on “Buy and Hold” No More: The Resurgence of Active Trading
> From this, it follows (as the night from the day) that the return on the average actively managed dollar must equal the market return. Why? Because the market return must equal a weighted average of the returns on the passive and active segments of the market. If the first two returns are the same, the third must be also.

Let me try to poke some holes in the argument.

1. Market return (M) is a weighted combination of passive (P) and actively managed portfolio (A) returns:

M = (1-w)P+(w)A.

2. Passive investor achieves market return M by holding the whole market, so P = M.

3. To satisfy the equation, A must also be M, regardless of w.

The logical error is in the assumption that P = M. To make this a concrete programming problem: let's say at time t=1, immediately prior to the start of a trading period, a passive investor decides to construct a portfolio. The passive investor makes investment allocations based on the current set of market prices.

Subsequently, how can the passive investor possibly match market returns without w being 0, or the passive investor knowing exactly how the active investors will allocate their holdings? That information lies in the future - one only needs to go though the exercise of simulating market returns on a discrete time basis to realize that the passive investor cannot possibly allocate to achieve exactly market returns.

M[1] = (1-w[1])P[1]+w[1]A[1]

ericjang··on “Buy and Hold” No More: The Resurgence of Active Trading
"statistically proven reality" is an oxymoron - past outperformance of passive funds (statistics) are no guarantee of future returns (reality).

Some of the math surrounding the derivation of the weakest forms of EMT also relies on the assumption that everyone has access to the same information, which is patently false in the world we live in. Even retail traders sometimes have an information edge (e.g. working at a biotech company or a specialized industry like semiconductors)

ericjang··on Scaling YC
I see this as a natural progression of VC industry - the game is not about who can predict the winners and losers, but rather about capturing as much early stage equity on new business opportunities.

In this sense, YC acts as an index fund on startups. Traditionally the IPO process weeds out the fraudulent businesses, and YC's application process is supposed to function the same way (with obviously less diligence) so that the efficiency of passive index returns aren't exploited.

In the limit, YC would be essentially investing in the equity of the totality of the younger technology workforce (who have majority of their earnings and talent and capital lying in the future). This is a good investment.

Where it differs slightly from a "indexing" model is that YC is allowed to encourage portfolio companies to buy and sell from each other, much like how Berkshire Hathaway does the same for its portfolio companies.

ericjang··on Learning Machine Learning for Game Development
Got it. I do research in reinforcement learning and I can sympathize with the difficulty here - in my experience, even something as simple as "I want to balance two objectives: 1) the agent should get a high score and 2) the agent should try to make as few decisions as possible" tends to result in the agent doing neither of those things well"
ericjang··on Learning Machine Learning for Game Development
Interesting! Is there some kind of meta-objective for "AI optimal" that could have replaced the 6 or 7 iterations you did with human R&D? For instance, if you had real human playtesters interacting with the prototypes, is there some signal you could extract to measure that it's "good"?
ericjang··on Computer tool spots deepfakes via tiny reflections in the eyes
proof-of-work based blockchains are technically also an arms race between good and bad actors. It still works because extending the chain costs compute, so as long as the good actors have the majority of compute, all is well.

Training a GAN can be thought about as a proof-of-work type job, where you need to recover the best Generator from the SOTA Discriminator, or vice versa.

So the proof of work chain looks like D-G-D-G-D-G. As long as the good actors continue to dedicate more compute to tackling deepfakes than bad actors, I think it should help mitigate the issue.

ericjang··on Don't Mess with Backprop: Doubts about Biologically Plausible Deep Learning
OP here. I hope that's not the takeaway readers glean from my article - the point I was making was just that it doesn't make sense to shoehorn a biophysical learning mechanism into a DNN, rather we should use a DNN to find a biophysical learning mechanism.

As to whether biophysical learning has anything to teach us is an entirely different question which I don't discuss in the post.

ericjang··on Don't Mess with Backprop: Doubts about Biologically Plausible Deep Learning
This is a good question. I think many "biologically plausible" neural models are willing to make some approximations for the benefit of computational power (e.g. rate coding instead of spike coding, point neurons and synapses instead of a cable model). As for non-differentiable operations, I think one strategy might be to formulate it as a multi-agent communication problem (e.g. https://www.aaai.org/ocs/index.php/AAAI/AAAI18/paper/viewFil...), where gradients are obtained via a differentiable relaxation or using a score-function gradient estimator (e.g. REINFORCE)
ericjang··on Don't Mess with Backprop: Doubts about Biologically Plausible Deep Learning
Deep Learning has nothing to do with biophysical neuron simulation, even though there is a confusing overloading of the term "neural network". A good introduction to deep learning is this chapter: https://mlstory.org/deep.html.

STDP falls under biophysical models of neuron simulation, where we try to faithfully reproduce biophysics of brain simulation (trivia: I started my undergrad in computational neuroscience and implemented STDP several times [1, 2, 3]). STDP is a learning mechanism, but it has not demonstrated the ability to learn as powerful models as DNN.

[1] https://github.com/ericjang/pyN

[2] https://github.com/ericjang/julia-NeuralNets

[3] https://github.com/ericjang/NeuralNets

ericjang··on A Nepali team has made the first winter ascent of K2
Thank you for sharing the photos ! Some of the poses are pretty funny :)
ericjang··on Interview with an anonymous AWS cybersecurity engineer
Which is fair. I don't think the interview is meant to be read as an authoritative source of truth on Amazon culture and sales and so forth, but rather just relaying what they've heard. They're more plugged into the Amazon rumor mill than I am and I think rumors often contain kernels of truth.
ericjang··on I Hacked into Facebook's Legal Department Admin Panel
Fair enough. I could imagine that if the work were billed by the hour or said research firm hired multiple people it would be easy for costs of the work to run up to $75k - it's within O(20k). I'm not qualified to price these though - I certainly would abhor having to pay that cost if I were a small company.
ericjang··on I Hacked into Facebook's Legal Department Admin Panel
Rather than the exploiter setting an arbitrary price (which would be closer to blackmail), I think parent comment was saying that the fair market value of disclosing such a bug was worth closer to $75k given the unique skill set required.

Skilled engineers turn to cybercrime when white-hat bounties are insufficiently rewarding, so it is in everyone's interest to pay competitive rates for finding security vulnerabilities.

ericjang··on A former Uber engineer's disaster story
Interesting. I assume other multinational apps run into this problem as well. Is Apple considering support for apps with country-dependent payloads in the future? Otherwise seems like a lot of bloat across all major apps.
ericjang··on Software and Hardware for General Robots
You've asserted the existence of a physics based answer, but you haven't answered what the "physics-based" criteria of an egg being "cooked" is. I assert that a straightforward short definition does not exist.
ericjang··on Software and Hardware for General Robots
Are you sure that making a bowl of cereal is that much easier? Are you sure that the act of making cereal doesn't involve some physical impediment that is trivial for humans but actually quite difficult for any non-humanoid robot morphology? I would encourage you to record a video of you making cereal with your hands or potentially even a "mocked robot end effector" that you control with your hands, and see if you can do the task from start to finish with that hardware.
ericjang··on Software and Hardware for General Robots
at what point would you consider an egg "cooked"? how would you define this as a measurable physical quantity?
ericjang··on Software and Hardware for General Robots
Often defining a function that classifies whether a task is accomplished or not requires a fair bit of semantic precision as well...
ericjang··on Software and Hardware for General Robots
Something like this? https://www.theburnin.com/technology/toyota-ceiling-mounted-...

Thanks for enumerating the use cases. They are fun to think about. I wanted to dive into the first application you mentioned. As mentioned in my post, even the most basic manipulation tasks on human-centric objects and spaces are actually full of little details.

I hope people think more on that low-level dextrous manipulation when designing robot hardware rather than the fairly high level "open door, pull package inside, close the door", which might make robotics people receptive to the idea that a humanoid is truly the only viable solution.

What if your door has a step down to the porch where the package is delivered? The robot can't "just" pull a large box inside, it would get stuck. You'd need to lift it up, and at this point you'd require two arms or a gantry that can extend outside of the home above the porch. Obviously the home can be re-designed around this, but my point is that there are really two kinds of robotics - ones that try to solve a human problem, and ones that try to do everything a human can.

← PreviousPage 3 of 14Next →