microsoft research cambridge
play

Microsoft Research, Cambridge Joint work with Marc Brockschmidt, - PowerPoint PPT Presentation

Microsoft Research, Cambridge Joint work with Marc Brockschmidt, Mahmoud Khademi, Hamel Husain, Ho-Hsiang Wu, Tiferet Gazit, Santanu Dash, Earl T. Barr Deep Understands images/language/speech Learning Finds patterns in noisy data


  1. Microsoft Research, Cambridge Joint work with Marc Brockschmidt, Mahmoud Khademi, Hamel Husain, Ho-Hsiang Wu, Tiferet Gazit, Santanu Dash, Earl T. Barr

  2. Deep ✓ Understands images/language/speech Learning ✓ Finds patterns in noisy data Requires many samples - Handling structured data is hard - DPU ✓ Interpretable ✓ Generalisation verifiable Program Manual effort - Structure Limited to specialists -

  3. http://www.eclipse.org/recommenders/ https://visualstudio.microsoft.com/services/intellicode/

  4. Research in ML+Code

  5. int int int int int int int int for (int i = 0; i < lim; i++) for (int i =0; < ; ++) if (arr[i] > 0) if ( [ ]>0) sum += arr[i]; += [ ]; return return

  6. ExpressionStatement Assert.NotNull(clazz); Next Token InvocationExpression AST Child MemberAccessExpression ArgumentList ( … Assert . NotNull

  7. (x, y) = Foo(); Last Write while (x > 0) Last Use Computed From x = x + y;

  8. int int int int for (int i =0; < ; ++) if ( [ ]>0) += [ ]; return ~900 nodes/graph ~8k edges/graph

  9. A A B B C C D D E E G G F F Li et al (2015). Gated Graph Sequence Neural Networks. Gilmer et al (2017). Neural Message Passing for Quantum Chemistry.

  10. • node selection • node classification • graph classification Li et al (2015). Gated Graph Sequence Neural Networks. Gilmer et al (2017). Neural Message Passing for Quantum Chemistry. https://github.com/microsoft/tf-gnn-samples/

  11. A B C D E G F

  12. Accuracy (%) BiGRU BiGRU+Dataflow GGNN Seen Projects 50.0 73.7 85.5 Seen Projects: 24 F/OSS C# projects (2060 kLOC): Used for train and test 3.8 type-correct alternative variables per slot (median 3, σ = 2.6)

  13. Accuracy (%) BiGRU BiGRU+Dataflow GGNN Seen Projects 50.0 73.7 85.5 Unseen Projects 28.9 60.2 78.2 Seen Projects: 24 F/OSS C# projects (2060 kLOC): Used for train and test Unseen Projects: 3 F/OSS C# projects (228 kLOC): Used only for test 3.8 type-correct alternative variables per slot (median 3, σ = 2.6)

  14. let a = 1 ; let b = a + 1 ;

  15. Type Annotations CheckJS (but contain any ’s that can (classic typechecker) be refined) “Augmented” DeepTyper Type predict on all >90% Annotations confidence Hellendoorn, Barr, Bird, Allamanis, FSE 2018

  16. Defined Types string string

  17. string EncryptAndSignCookie( string cookieValue, FormsAuthenticationConfiguration config) { string encryptedCookie = config.CryptographyConfiguration.EncryptionProvider.Encrypt(cookieValue); var hmacBytes = GenerateHmac(encryptedCookie, config); string hmacString = Convert.ToBase64String(hmacBytes); return hmacString + encryptedCookie; } Dash, Allamanis, Barr. 2018

  18. def return

  19. def string

  20. def def string

  21. Full ll name me of node e or constant stant value lue in bepuphysi uphysics cs damping, SuspensionDamping, starchDamping, dampingConstant, angularDamping, LinearDamping currentDistance, distance3, candidateDistance, pointDistance, distanceFromMaximum, grabDistance, VariableLinearSpeedCurve::GetDistance, tempDistance goalVelocity, driveSpeed, GoalSpeed minRadius, MinimumRadius, Radius, minimumRadiusA, WrappedShape::ComputeMinimumRadius, topRadius, MaximumRadius, graphicalRadius, TransformableShape::ComputeMaximumRadius blendedCoefficient, KineticFriction, dynamicCoefficient,KineticBreakingFrictionCoefficient angle, myMaximumAngle, MinimumAngle, currentAngle, MaximumAngle, steeringAngle, MathHelper::WrapAngle targetHeight, Height, ProneHeight, crouchingHeight, standingHeight Mass, effectiveMass, newMassA, newMass M22, m11, M44, resultM44, M43, intermediate, m31, X, Y, Z

  22. https://github.com/github/CodeSearchNet

  23. Machine Learning Learn Patterns from Rich Structure Formal Methods Reasoning Photo by Luke Stackpoole

  24. F D D F E F E F

  25. A B C D E G F

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend