5 ms·
Q-Learning
- 37 7y agoDidn't you post this two days ago? https://news.ycombinator.com/item?id=20685049 https://news.ycombinator.com/item?id=20685049 edit: hn.algolia.com says you posted this two days ago... https://hn.algolia.com/?query=q%20learning&sort=byDate&prefix&page=0&dateRange=all&type=story https://hn.algolia.com/?query=q%20learning&sort=byDate&prefi...
- melling 7y agoAlthough this says an hour ago, it looks like the same post. Maybe the HN algorithm repromoted with enough upvotes? tosh is a busy guy. He submits about 30 articles a day and has 45,000 karma. He could probably teach us about the HN algorithm, and about ourselves. He does a lot of Wikipedia submissions that seem to be effective.
- tlb 7y agoThat's the "second chance" mechanism described at https://news.ycombinator.com/item?id=11662380 https://news.ycombinator.com/item?id=11662380
- 37 7y agoOh I see.... interesting. I assumed it was something built into HN because the post ID remained the same.
- 2bitencryption 7y agoQ-learning blew my mind when I took an AI course in college. One thing I never fully understood, why would anyone choose SARSA when they could use Q-learning? I believe they use the same inputs, and are nearly the same algorithm, but Q-learning is off-policy while SARSA is on-policy (if I remember right?)
- tlb 7y agoDouble Q-learning can learn from off-policy data. But it's fairly tricky to get all the tuning parameters right. It's a good choice if you can start up 100 or more runs with a range of parameters and pick the one that worked best.
- fnord77 7y agowas it the AI Pacman? I did that project, it really was mind-blowing
- BlahBoy3 7y agoFrom my understanding, SARSA could be more ideal when there is a greater cost associated with making a mistake whilst learning. SARSA is more conservative, as it takes into account possible large negative rewards during the exploratory phase. The classic example problem is "cliff walking."[0] [0] https://github.com/cvhu/CliffWalking https://github.com/cvhu/CliffWalking
- loehnsberg 7y agoSARSA follows the current policy. Suppose you're minimizing cost. Then, if the value function of the MDP is a lower bound, it will explore interesting states simply because SARSA underestimates the cost-to-go. If updates of the value function then tighten this lower bound, SARSA will converge. In this case, SARSA is more efficient than Q-learning. Apart from that using Q-factors does not scale well. If your action space is a game controller, things may still look ok, but not if your action space is multi-dimensional and continuous.
- CodiePetersen 7y agoQ learners have always been too brute forcey imo. Every action from any known state gets a value. That will explode on any meaningful task. Its better to use it in combination with some other model that reduces how many states are seen by the q learner. But it is a good model to understand some principles and motivations behind the general ideas in AI and machine learning.
- leet 7y agoYep. That is what Deep Q Network does.
- CodiePetersen 7y agoYeah that's a good example. Say for alpha go for instance. Without the DL network the q learner would be massive. And that's just for a board game. Imagine trying to do that for systems like moving human body parts. Every single body configuration would be a state and then you have every single possible action from each state.
- jsjolen 7y agoThe table becomes unwieldy on much simpler tasks than that. Consider a 3x3 board where each cell holds 3 bits of information (each cell can be in 2^3 states). Then for the board you have (2^3)^9 = 2^27 different states.
- wannabesrevenge 7y agoyou mathed wrong. 3x3 board with 8 states per cell is 72 total states. 9x8,not 8^9. Edit, I just considered : Unless you mean that the state is the combination of all the cells. Then you are right
- CodiePetersen 7y agoYes the state is the entirety of the boards configuration.
- guptaneil 7y agoI'm always amazed how much attention supervised learning algorithms get when Q-learning is often better suited for real-world problems that go beyond just classifying things, works closer to how humans actually learn, and is much easier to implement (requires way less code and no training data). I wonder how much of this disparity is because big companies like Google and FB who hold all the training data benefit from only talking about ML techniques that nobody can compete with them on. At Hiome (hiome.com), we use Q-learning to learn people's habits and automatically program their smart home, and it's insanely effective. Since there's no training data required, we don't even have to violate our users' privacy to aggregate their data, so everything stays local in their home. I believe similar techniques will get us closer to true AGI than neural nets.
- CodiePetersen 7y agoIt's not used a lot in ambiguous tasks like image recognition and audio because you would need to have a state for every single possible wave form or image variation. You would have to have a similarity preserving hash or some other related method to reduce related states to a single common state. That's why it's better to use them near the ends of DL networks. If you didn't do that, every image of the same apple with just one pixel different would be a new state.
- guptaneil 7y agoYup, totally agree that Q-learning is not the right tool for classification problems. However, it is great for an agent that needs to act on its world where it can quickly get a reward/punishment for its choice (assuming a relatively limited pool of possible actions). And of course, there's no such thing as the single perfect algorithm. My point is just that I'm surprised Q-learning isn't talked about more.
- CodiePetersen 7y agoWell I don't know about q learning being talked about more but unsupervised reinforcement learning definitely needs more attention in general.
- Buttons840 7y agoI tried to learn deep Q-learning recently using OpenAI gym. I looked at the "leader boards" and tried to learn from their code, but I wasn't getting results nearly as good as the "leaders". I eventually checked out the leaders code and ran it myself, but removed their carefully selected random seeds, and found that the supposed leading solutions often failed to converge at all without their magically selected random seed. I left the experience believing deep RL is still very unreliable.
- yd218 7y agoYou may be interested in our new Behaviour Suite for Reinforcement Learning project at https://github.com/deepmind/bsuite https://github.com/deepmind/bsuite. This is an attempt at defining a set of minimal but meaningful benchmark RL experiments. In each experiment, we typically evaluate over a range of environment parameters and compute an aggregate score. See https://arxiv.org/abs/1908.03568 https://arxiv.org/abs/1908.03568 for more details. We also include a simple starter RL codebase, and examples of evaluating agents defined in other RL frameworks.
- Buttons840 7y agoI am interested, thanks.
- maxc01 7y agoactually the seed is also a hyper-parameter